Add UART multiplexer and INA226 monitoring
This commit is contained in:
12
main/uart_mux.h
Normal file
12
main/uart_mux.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "esp_err.h"
|
||||
|
||||
esp_err_t uart_mux_init(void);
|
||||
bool uart_mux_ready(void);
|
||||
size_t uart_mux_channel_count(void);
|
||||
esp_err_t uart_mux_write(size_t channel, const uint8_t *data, size_t length, TickType_t timeout);
|
||||
esp_err_t uart_mux_read(size_t channel, uint8_t *buffer, size_t buffer_size, size_t *out_length, TickType_t timeout);
|
||||
Reference in New Issue
Block a user