IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool

USART IRQ, Get and Put char into reception and transmission queues. More...

Collaboration diagram for Queue Handle:

Functions

uint8_t message_getchar (uint8_t *c)
 Gets a character from the receive queue. More...
 
void message_putchar (uint8_t c, uint8_t go_flag)
 sends a character to the transmission queue and enables TX interrupt More...
 
void queue_get_data (void)
 interrupt handler for USART 2 More...
 
void queue_handle_enable (void)
 
void queue_send_data (void)
 

Detailed Description

USART IRQ, Get and Put char into reception and transmission queues.

*
* 
Note

Function Documentation

◆ message_getchar()

uint8_t message_getchar ( uint8_t *  c)

Gets a character from the receive queue.

Parameters
cpointer to a byte
Returns
0 no data / 1 data

Definition at line 114 of file queue_handle.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ message_putchar()

void message_putchar ( uint8_t  c,
uint8_t  go_flag 
)

sends a character to the transmission queue and enables TX interrupt

Parameters
cbyte to the transmission queue
go_flagsignals transmission can begin

Definition at line 125 of file queue_handle.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ queue_get_data()

void queue_get_data ( void  )

interrupt handler for USART 2

* Uart_Rx_Buffer and Uart_Tx_Buffer are the two queue affected by this function
* On a hardware interrupt a byte will be queued into Uart_Rx_Buffer
* On a software interrupt a byte will be queued into Uart_Tx_Buffer
* 

Definition at line 72 of file queue_handle.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ queue_handle_enable()

void queue_handle_enable ( void  )

Definition at line 102 of file queue_handle.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ queue_send_data()

void queue_send_data ( void  )

Definition at line 86 of file queue_handle.c.

Here is the call graph for this function:
Here is the caller graph for this function: