Wirepas SDK
|
Low level interface for WAPS. Used for transmitting and receiving data via UART.
Definition in file waps_uart.h.
Go to the source code of this file.
Functions | |
bool | Waps_uart_init (new_frame_cb_f frame_cb, uint32_t baud, bool flow_ctrl, void *tx_buffer, void *rx_buffer) |
WAPS UART initialize, after this, WAPS UART is ready to transmit and receive serial data. More... | |
void | Waps_uart_powerReset (void) |
Power config. Disable UART auto-powering on Sinks and LL Nodes. More... | |
bool | Waps_uart_send (const void *buffer, uint32_t size) |
WAPS UART send, send a block of data via serial port Automatically applies SLIP encoding to data and appends CRC. More... | |
void | Waps_uart_flush (void) |
Flush UART module TX buffer. Waits for operation (pend) to complete before returning. More... | |
void | Waps_uart_setIrq (bool state) |
Set indication that something is pending. More... | |
void | Waps_uart_AutoPowerOn (void) |
Enable automatic RX power. More... | |
void | Waps_uart_AutoPowerOff (void) |
Disable automatic RX power. More... | |
void | Waps_uart_keepPowerOn (void) |
Keep power on (receiver is receiving) More... | |
void | Waps_uart_powerOff (void) |
Grafecully power down UART, if autopower-feature is used. More... | |
uint32_t | Waps_uart_powerExec (void) |
Callback task for power manager. More... | |
void | Waps_uart_clean (void) |
Clean waps from old data. More... | |
void Waps_uart_AutoPowerOff | ( | void | ) |
Disable automatic RX power.
void Waps_uart_AutoPowerOn | ( | void | ) |
Enable automatic RX power.
void Waps_uart_clean | ( | void | ) |
Clean waps from old data.
void Waps_uart_flush | ( | void | ) |
Flush UART module TX buffer. Waits for operation (pend) to complete before returning.
bool Waps_uart_init | ( | new_frame_cb_f | frame_cb, |
uint32_t | baud, | ||
bool | flow_ctrl, | ||
void * | tx_buffer, | ||
void * | rx_buffer | ||
) |
WAPS UART initialize, after this, WAPS UART is ready to transmit and receive serial data.
frame_cb | Mandatory callback for upper layer notification about a valid looking frame |
baud | Baudrate for communication |
flow_ctrl | Is flow control to be used or not |
tx_buffer | Memory block for transmissions |
rx_buffer | Memory block for receptions |
void Waps_uart_keepPowerOn | ( | void | ) |
Keep power on (receiver is receiving)
uint32_t Waps_uart_powerExec | ( | void | ) |
Callback task for power manager.
void Waps_uart_powerOff | ( | void | ) |
Grafecully power down UART, if autopower-feature is used.
void Waps_uart_powerReset | ( | void | ) |
Power config. Disable UART auto-powering on Sinks and LL Nodes.
bool Waps_uart_send | ( | const void * | buffer, |
uint32_t | size | ||
) |
WAPS UART send, send a block of data via serial port Automatically applies SLIP encoding to data and appends CRC.
buffer | Pointer to memory block for transmit |
size | Amount of data in bytes to send |
void Waps_uart_setIrq | ( | bool | state | ) |
Set indication that something is pending.
state | True means that something is pending, false that queues are empty |