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. | |
advanced functions
uint8_t packedCom_inp | ( | void | ) |
Receives one byte from the UART0 or UART1.
This function will wait until data is available.
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().
send_data | 8-bit unsigned integer |
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.
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().
send_data | 16-bit pointer to a character located in the RAM |
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().
send_data | 16-bit pointer to a character located in the flash |
void tucbot_packedCom_out | ( | uint8_t | send_data | ) |
Sends one byte through the UART0 & UART1.
This function will transmit data through both UART.
send_data | 8-bit unsigned integer |