Classes | Defines | Functions | Variables
uart.h File Reference
#include <inttypes.h>
#include <mav_common/comm_packets.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, 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
short uart0_min_rx_buffer
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 39 of file uart.h.

#define RBFREE   2

Definition at line 26 of file uart.h.

#define RBREAD   0

Definition at line 24 of file uart.h.

#define RBWRITE   1

Definition at line 25 of file uart.h.

#define RINGBUFFERSIZE   384

Definition at line 27 of file uart.h.

#define UART0_RX_BUFFERSIZE   512

Definition at line 35 of file uart.h.

#define UART0_TX_BUFFERSIZE   512

Definition at line 36 of file uart.h.


Function Documentation

void __putchar ( int  )

Definition at line 414 of file uart.c.

uint16_t crc16 ( void *  ,
uint16_t  count,
uint16_t  prev_crc 
)

Definition at line 458 of file uart.c.

uint16_t crc_update ( uint16_t  ,
uint8_t   
)

Definition at line 450 of file uart.c.

uint16_t Fifo_availableMemory ( Fifo fifo) [inline]

Definition at line 179 of file uart.c.

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

Definition at line 127 of file uart.c.

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

Definition at line 170 of file uart.c.

void Fifo_reset ( Fifo fifo) [inline]

Definition at line 184 of file uart.c.

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

Definition at line 148 of file uart.c.

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

Definition at line 138 of file uart.c.

void parseRxFifo ( void  )

Definition at line 203 of file uart.c.

PacketInfo* registerPacket ( uint8_t  descriptor,
void *  data 
)

Definition at line 190 of file uart.c.

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

Definition at line 375 of file uart.c.

void UART0_rxFlush ( void  )

Definition at line 384 of file uart.c.

int UART0_txEmpty ( void  )

Definition at line 394 of file uart.c.

void UART0_txFlush ( void  )

Definition at line 389 of file uart.c.

uint8_t UART0_writeFifo ( void *  data,
uint32_t  length 
)

Definition at line 341 of file uart.c.

void uart0ISR ( void  )

Definition at line 47 of file uart.c.

void UART_send ( char *  ,
unsigned  char 
)

Definition at line 421 of file uart.c.

void UART_send_ringbuffer ( void  )

Definition at line 437 of file uart.c.

void UARTInitialize ( unsigned  int)

Definition at line 355 of file uart.c.

unsigned char UARTReadChar ( void  )

Definition at line 407 of file uart.c.

void UARTWriteChar ( unsigned  char)

Definition at line 400 of file uart.c.

int writePacket2Ringbuffer ( uint8_t  descriptor,
void *  data,
uint8_t  length 
) [inline]

Definition at line 322 of file uart.c.


Variable Documentation

volatile char autobaud_in_progress

Definition at line 45 of file uart.c.

Definition at line 30 of file uart.c.

Definition at line 29 of file uart.c.

volatile unsigned int UART_rxGoodPacketCount

Definition at line 40 of file uart.c.

volatile unsigned int UART_rxPacketCount

Definition at line 39 of file uart.c.



ccny_asctec_firmware
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:32