Functions | |
| void | UartMesSlave_Init (CySCB_Type *uart_base, uint8_t address) |
| Initializes the UART slave protocol unit. | |
| void | UartMesSlave_DeInit (void) |
| De-initializes the UART slave protocol unit. | |
| uint8_t | UartMesSlave_Respond (uint8_t *txd, uint8_t tlen) |
| Starts the background sending of the respond. | |
| uint8_t | UartMesSlave_State (void) |
| Returns the state of the current slave unit. | |
| uint8_t | UartMesSlave_GetDataSize (void) |
| Returns the received data size. | |
| volatile uint8_t * | UartMesSlave_GetDataPtr (void) |
| Returns a pointer to the received data buffer. | |
| void | UartMesSlave_Msg_ISR (void) |
| Interrupt handler for UART to receive/transmit. | |
| void UartMesSlave_Init | ( | CySCB_Type * | uart_base, |
| uint8_t | address ) |
Initializes the UART slave protocol unit.
This function starts the required components and initializes the control status structure.
| uart_base | The pointer to the slave UART SCB instance. |
| address | Slave bus address |
| void UartMesSlave_DeInit | ( | void | ) |
De-initializes the UART slave protocol unit.
Disables all TX/RX interrupts, flushes the FIFOs, disables the UART peripheral, and resets the internal control status structure.
| uint8_t UartMesSlave_Respond | ( | uint8_t * | txd, |
| uint8_t | tlen ) |
Starts the background sending of the respond.
| txd | The pointer to the sent data. |
| tlen | The size of sent data in bytes. |
txd buffer must remain valid and unmodified until the response completes.| uint8_t UartMesSlave_State | ( | void | ) |
Returns the state of the current slave unit.
| uint8_t UartMesSlave_GetDataSize | ( | void | ) |
Returns the received data size.
| volatile uint8_t * UartMesSlave_GetDataPtr | ( | void | ) |
Returns a pointer to the received data buffer.