Functions

advanced functions More...

Functions

uint8_t packedCom_inp (void)
 Receives one byte from the UART0 or UART1. More...
 
uint8_t packedCom_stat (void)
 Gets the number of bytes in the input buffers of UART0 and UART1. More...
 
void packedCom_out (uint8_t send_data)
 Sends one byte through the UART0 & UART1. More...
 
void packedCom_str (const char *send_data)
 Sends a string located in the RAM through UART0 and UART1. More...
 
void packedCom_str_p (const char *send_data)
 Sends a string located in the flash through UART0 and UART1. More...
 
void tucbot_packedCom_out (uint8_t send_data)
 Sends one byte through the UART0 & UART1. More...
 
void tucbot_packedCom_reset (void)
 Resets the buffer handling for packet communication.
 

Detailed Description

advanced functions

Function Documentation

◆ packedCom_inp()

uint8_t packedCom_inp ( void  )

Receives one byte from the UART0 or UART1.

This function will wait until data is available.

Note
If packed communication is active this function will abort and return 0x00 immediately.
Returns
8-bit unsigned integer
See also
packedCom_activate() and packedCom_deactivate()

◆ packedCom_out()

void packedCom_out ( uint8_t  send_data)

Sends one byte through the UART0 & UART1.

This function will abort, if data is currently put into the transmit buffers via packedCom_out(), packedCom_str_p() or packedCom_str().

Note
This function does not rely on activation or deactivation of the packed communication.
Parameters
send_data8-bit unsigned integer

◆ packedCom_stat()

uint8_t packedCom_stat ( void  )

Gets the number of bytes in the input buffers of UART0 and UART1.

This function will count all bytes in UART0 and UART1.

Note
If packed communication is active this function will abort and return 0x00 immediately.
Returns
8-bit unsigned integer
See also
packedCom_inp()

◆ packedCom_str()

void packedCom_str ( const char *  send_data)

Sends a string located in the RAM through UART0 and UART1.

This function loads the referenced string character by character and writes those using the packedCom_out() function until a terminating \ 0-character is found.

This function will abort, if data is currently put into the transmit buffers via packedCom_out(), packedCom_str_p() or packedCom_str().

Note
This function does not rely on activation or deactivation of the packed communication.
Parameters
send_data16-bit pointer to a character located in the RAM
See also
packedCom_out() and packedCom_str_p()

◆ packedCom_str_p()

void packedCom_str_p ( const char *  send_data)

Sends a string located in the flash through UART0 and UART1.

This function loads the referenced string character by character and writes those using the packedCom_out() function until a terminating \ 0-character is found.

This function will abort, if data is currently put into the transmit buffers via packedCom_out(), packedCom_str_p() or packedCom_str().

Note
This function does not rely on activation or deactivation of the packed communication.
Parameters
send_data16-bit pointer to a character located in the flash
See also
packedCom_out() and packedCom_str()

◆ tucbot_packedCom_out()

void tucbot_packedCom_out ( uint8_t  send_data)

Sends one byte through the UART0 & UART1.

This function will transmit data through both UART.

Note
This function is not intended for the user.
Parameters
send_data8-bit unsigned integer
See also
packedCom_out(), packedCom_str_p() and packedCom_str()