Wirepas SDK
waps_uart.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
7 #ifndef APP_WAPSUART_H__
8 #define APP_WAPSUART_H__
9 
10 #include <stdbool.h>
11 #include <stdint.h>
12 #include "waps/comm/waps_comm.h"
13 
36 bool Waps_uart_init(new_frame_cb_f frame_cb,
37  uint32_t baud,
38  bool flow_ctrl,
39  void * tx_buffer,
40  void * rx_buffer);
41 
46 void Waps_uart_powerReset(void);
47 
56 bool Waps_uart_send(const void * buffer, uint32_t size);
57 
62 void Waps_uart_flush(void);
63 
71 void Waps_uart_setIrq(bool state);
72 
76 void Waps_uart_AutoPowerOn(void);
77 
81 void Waps_uart_AutoPowerOff(void);
82 
86 void Waps_uart_keepPowerOn(void);
87 
91 void Waps_uart_powerOff(void);
92 
96 uint32_t Waps_uart_powerExec(void);
97 
101 void Waps_uart_clean(void);
102 #endif
Waps_uart_AutoPowerOff
void Waps_uart_AutoPowerOff(void)
Disable automatic RX power.
waps_comm.h
Waps_uart_powerOff
void Waps_uart_powerOff(void)
Grafecully power down UART, if autopower-feature is used.
Waps_uart_powerExec
uint32_t Waps_uart_powerExec(void)
Callback task for power manager.
Waps_uart_powerReset
void Waps_uart_powerReset(void)
Power config. Disable UART auto-powering on Sinks and LL Nodes.
Waps_uart_clean
void Waps_uart_clean(void)
Clean waps from old data.
Waps_uart_AutoPowerOn
void Waps_uart_AutoPowerOn(void)
Enable automatic RX power.
new_frame_cb_f
bool(* new_frame_cb_f)(void *, uint32_t)
Definition: waps_comm.h:14
Waps_uart_send
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 ...
Waps_uart_setIrq
void Waps_uart_setIrq(bool state)
Set indication that something is pending.
Waps_uart_init
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.
Waps_uart_keepPowerOn
void Waps_uart_keepPowerOn(void)
Keep power on (receiver is receiving)
Waps_uart_flush
void Waps_uart_flush(void)
Flush UART module TX buffer. Waits for operation (pend) to complete before returning.