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
37 uint32_t baud,
38 bool flow_ctrl,
39 void * tx_buffer,
40 void * rx_buffer);
41
47
56bool Waps_uart_send(const void * buffer, uint32_t size);
57
62void Waps_uart_flush(void);
63
71void Waps_uart_setIrq(bool state);
72
77
82
87
92
96uint32_t Waps_uart_powerExec(void);
97
102#endif
bool(* new_frame_cb_f)(void *, uint32_t)
Definition waps_comm.h:14
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 ...
void Waps_uart_powerReset(void)
Power config. Disable UART auto-powering on Sinks and LL Nodes.
void Waps_uart_clean(void)
Clean waps from old data.
void Waps_uart_setIrq(bool state)
Set indication that something is pending.
void Waps_uart_AutoPowerOn(void)
Enable automatic RX power.
void Waps_uart_keepPowerOn(void)
Keep power on (receiver is receiving)
void Waps_uart_flush(void)
Flush UART module TX buffer. Waits for operation (pend) to complete before returning.
uint32_t Waps_uart_powerExec(void)
Callback task for power manager.
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.
void Waps_uart_AutoPowerOff(void)
Disable automatic RX power.
void Waps_uart_powerOff(void)
Grafecully power down UART, if autopower-feature is used.