#include <inttypes.h>
Go to the source code of this file.
Classes | |
struct | Fifo |
struct | PacketInfo |
Defines | |
#define | PACKET_INFO_SIZE 64 |
#define | RBFREE 2 |
#define | RBREAD 0 |
#define | RBWRITE 1 |
#define | RINGBUFFERSIZE 384 |
#define | UART0_RX_BUFFERSIZE 512 |
#define | UART0_TX_BUFFERSIZE 512 |
Functions | |
void | __putchar (int) |
uint16_t | crc16 (void *, uint16_t count, uint16_t prev_crc) |
uint16_t | crc_update (uint16_t, uint8_t) |
uint16_t | Fifo_availableMemory (Fifo *fifo) |
void | Fifo_initialize (Fifo *fifo, volatile uint8_t *buffer, uint32_t bufferSize) |
uint8_t | Fifo_readByte (Fifo *fifo, uint8_t *byte) |
void | Fifo_reset (Fifo *fifo) |
uint8_t | Fifo_writeBlock (Fifo *fifo, void *data, uint32_t length) |
uint8_t | Fifo_writeByte (Fifo *fifo, uint8_t byte) |
void | parseRxFifo (void) |
PacketInfo * | registerPacket (uint8_t descriptor, void *data) |
int | ringbuffer (unsigned char, unsigned char *, unsigned int) |
void | startAutoBaud (void) |
void | UART0_rxFlush (void) |
int | UART0_txEmpty (void) |
void | UART0_txFlush (void) |
uint8_t | UART0_writeFifo (void *data, uint32_t length) |
void | uart0ISR (void) |
void | UART_send (char *, unsigned char) |
void | UART_send_ringbuffer (void) |
void | UARTInitialize (unsigned int) |
unsigned char | UARTReadChar (void) |
void | UARTWriteChar (unsigned char) |
int | writePacket2Ringbuffer (uint8_t descriptor, void *data, uint8_t length) |
Variables | |
volatile char | autobaud_in_progress |
volatile short | uart0_min_rx_buffer |
volatile short | uart0_min_tx_buffer |
volatile unsigned int | UART_rxGoodPacketCount |
volatile unsigned int | UART_rxPacketCount |
#define PACKET_INFO_SIZE 64 |
#define RINGBUFFERSIZE 384 |
#define UART0_RX_BUFFERSIZE 512 |
#define UART0_TX_BUFFERSIZE 512 |
void __putchar | ( | int | ) |
Definition at line 231 of file original_hl_sdk_2.0/uart.c.
uint16_t crc16 | ( | void * | , |
uint16_t | count, | ||
uint16_t | prev_crc | ||
) | [inline] |
uint16_t crc_update | ( | uint16_t | , |
uint8_t | |||
) | [inline] |
uint16_t Fifo_availableMemory | ( | Fifo * | fifo | ) | [inline] |
void Fifo_initialize | ( | Fifo * | fifo, |
volatile uint8_t * | buffer, | ||
uint32_t | bufferSize | ||
) |
uint8_t Fifo_readByte | ( | Fifo * | fifo, |
uint8_t * | byte | ||
) | [inline] |
void Fifo_reset | ( | Fifo * | fifo | ) | [inline] |
uint8_t Fifo_writeBlock | ( | Fifo * | fifo, |
void * | data, | ||
uint32_t | length | ||
) | [inline] |
uint8_t Fifo_writeByte | ( | Fifo * | fifo, |
uint8_t | byte | ||
) | [inline] |
void parseRxFifo | ( | void | ) |
PacketInfo* registerPacket | ( | uint8_t | descriptor, |
void * | data | ||
) |
int ringbuffer | ( | unsigned | char, |
unsigned char * | , | ||
unsigned | int | ||
) |
Definition at line 328 of file original_hl_sdk_2.0/uart.c.
void startAutoBaud | ( | void | ) |
void UART0_rxFlush | ( | void | ) |
int UART0_txEmpty | ( | void | ) |
void UART0_txFlush | ( | void | ) |
uint8_t UART0_writeFifo | ( | void * | data, |
uint32_t | length | ||
) |
void uart0ISR | ( | void | ) |
Definition at line 111 of file original_hl_sdk_2.0/uart.c.
void UART_send | ( | char * | , |
unsigned | char | ||
) |
Definition at line 238 of file original_hl_sdk_2.0/uart.c.
void UART_send_ringbuffer | ( | void | ) |
Definition at line 263 of file original_hl_sdk_2.0/uart.c.
void UARTInitialize | ( | unsigned | int | ) |
Definition at line 180 of file original_hl_sdk_2.0/uart.c.
unsigned char UARTReadChar | ( | void | ) |
Definition at line 219 of file original_hl_sdk_2.0/uart.c.
void UARTWriteChar | ( | unsigned | char | ) |
Definition at line 207 of file original_hl_sdk_2.0/uart.c.
int writePacket2Ringbuffer | ( | uint8_t | descriptor, |
void * | data, | ||
uint8_t | length | ||
) |
volatile char autobaud_in_progress |
volatile short uart0_min_rx_buffer |
volatile short uart0_min_tx_buffer |
volatile unsigned int UART_rxGoodPacketCount |
volatile unsigned int UART_rxPacketCount |