https://github.com/podnet/rpc-uart
https://github.com/podnet/rpc-uart
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/podnet/rpc-uart
- Owner: Podnet
- License: other
- Created: 2020-06-26T05:50:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T06:02:50.000Z (almost 6 years ago)
- Last Synced: 2025-01-16T15:36:56.323Z (over 1 year ago)
- Language: C
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Implementation of Mongoose OS RPC over UART
- Uart dispatcher
```C
void mg_rpc_channel_uart_dispatcher(int uart_no, void *arg);
```
- Uart connection
```C
static void mg_rpc_channel_uart_ch_connect(struct mg_rpc_channel *ch);
```
- Uart send frame
```C
static bool mg_rpc_channel_uart_send_frame(struct mg_rpc_channel *ch,const struct mg_str f);
```
- Uart channel closed
```C
static void mg_rpc_channel_uart_ch_close(struct mg_rpc_channel *ch);
```
- Uart rpc config
```C
struct mg_rpc_channel *mg_rpc_channel_uart( const struct mgos_config_rpc_uart *ccfg,
const struct mgos_uart_config *ucfg);
```
- check if config was correct
```C
bool mgos_rpc_uart_init(void)
```