Classes | Defines | Functions | Variables
uart.h File Reference
#include <inttypes.h>
Include dependency graph for uart.h:
This graph shows which files directly or indirectly include this file:

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)
PacketInforegisterPacket (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 Documentation

#define PACKET_INFO_SIZE   64

Definition at line 69 of file uart.h.

#define RBFREE   2

Definition at line 56 of file uart.h.

#define RBREAD   0

Definition at line 54 of file uart.h.

#define RBWRITE   1

Definition at line 55 of file uart.h.

#define RINGBUFFERSIZE   384

Definition at line 57 of file uart.h.

#define UART0_RX_BUFFERSIZE   512

Definition at line 65 of file uart.h.

#define UART0_TX_BUFFERSIZE   512

Definition at line 66 of file uart.h.


Function Documentation

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]

Definition at line 485 of file uart.c.

uint16_t crc_update ( uint16_t  ,
uint8_t   
) [inline]

Definition at line 477 of file uart.c.

uint16_t Fifo_availableMemory ( Fifo fifo) [inline]

Definition at line 207 of file uart.c.

void Fifo_initialize ( Fifo fifo,
volatile uint8_t *  buffer,
uint32_t  bufferSize 
)

Definition at line 155 of file uart.c.

uint8_t Fifo_readByte ( Fifo fifo,
uint8_t *  byte 
) [inline]

Definition at line 198 of file uart.c.

void Fifo_reset ( Fifo fifo) [inline]

Definition at line 212 of file uart.c.

uint8_t Fifo_writeBlock ( Fifo fifo,
void *  data,
uint32_t  length 
) [inline]

Definition at line 176 of file uart.c.

uint8_t Fifo_writeByte ( Fifo fifo,
uint8_t  byte 
) [inline]

Definition at line 166 of file uart.c.

void parseRxFifo ( void  )

Definition at line 231 of file uart.c.

PacketInfo* registerPacket ( uint8_t  descriptor,
void *  data 
)

Definition at line 218 of file uart.c.

int ringbuffer ( unsigned  char,
unsigned char *  ,
unsigned  int 
)

Definition at line 328 of file original_hl_sdk_2.0/uart.c.

void startAutoBaud ( void  )

Definition at line 402 of file uart.c.

void UART0_rxFlush ( void  )

Definition at line 411 of file uart.c.

int UART0_txEmpty ( void  )

Definition at line 421 of file uart.c.

void UART0_txFlush ( void  )

Definition at line 416 of file uart.c.

uint8_t UART0_writeFifo ( void *  data,
uint32_t  length 
)

Definition at line 368 of file uart.c.

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 
)

Definition at line 349 of file uart.c.


Variable Documentation

volatile char autobaud_in_progress

Definition at line 73 of file uart.c.

volatile short uart0_min_rx_buffer

Definition at line 58 of file uart.c.

volatile short uart0_min_tx_buffer

Definition at line 57 of file uart.c.

volatile unsigned int UART_rxGoodPacketCount

Definition at line 68 of file uart.c.

volatile unsigned int UART_rxPacketCount

Definition at line 67 of file uart.c.



asctec_hl_firmware
Author(s): Markus Achtelik, Michael Achtelik, Stephan Weiss, Laurent Kneip
autogenerated on Tue Dec 17 2013 11:39:27