Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
cli_uart_interface.h
Go to the documentation of this file.
1
5
12/****************************************************************************/
13/* INCLUDE FILES */
14/****************************************************************************/
15#ifndef __UART_INTERFACE__
16#define __UART_INTERFACE__
17
18#include <stdint.h>
19#include <stddef.h>
20#include <stdbool.h>
21#include <zpal_uart.h>
22
23#include "embedded_cli.h"
24#include "radio_cli_commands.h"
25
30 #define RECEIVE_BUFFER_SIZE 32
31
36#define TRANSMIT_BUFFER_SIZE 100
37
43typedef void (*receiveCharHook_t)(char value);
44
51
58void cli_uart_init(zpal_uart_id_t uart, void (*callback)());
59
64
70void cli_uart_print(const char* message);
71
77void cli_uart_printf(const char* pFormat, ...);
78
83
84#endif /* __UART_INTERFACE__ */
void(* receiveCharHook_t)(char value)
Definition cli_uart_interface.h:43
void cli_uart_process(void)
void cli_uart_printf(const char *pFormat,...)
void cli_uart_receive_handler(void)
void cli_uart_receive_hook_set(receiveCharHook_t receiveCharFunc)
void cli_uart_print(const char *message)
void cli_uart_init(zpal_uart_id_t uart, void(*callback)())
Initializes the given UART and the CLI.
zpal_uart_id_t
IDs for each of the UARTs.
Definition zpal_uart.h:68
Radio CLI commands.