uartmux 2.0.0.0
|
This file contains API for UART Mux Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | uartmux_channel_t |
struct | uartmux_t |
Click ctx object definition. More... | |
struct | uartmux_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | UARTMUX_MAP_MIKROBUS(cfg, mikrobus) |
#define | UARTMUX_RETVAL uint8_t |
#define | UARTMUX_OK 0x00 |
#define | UARTMUX_INIT_ERROR 0xFF |
#define | UARTMUX_PIN_STATE_HIGH 1 |
#define | UARTMUX_PIN_STATE_LOW 0 |
#define | UARTMUX_STATE_A_CHANNEL_1 0 |
#define | UARTMUX_STATE_B_CHANNEL_1 0 |
#define | UARTMUX_STATE_A_CHANNEL_2 1 |
#define | UARTMUX_STATE_B_CHANNEL_2 0 |
#define | UARTMUX_STATE_A_CHANNEL_3 0 |
#define | UARTMUX_STATE_B_CHANNEL_3 1 |
#define | UARTMUX_STATE_A_CHANNEL_4 1 |
#define | UARTMUX_STATE_B_CHANNEL_4 1 |
#define | DRV_RX_BUFFER_SIZE 500 |
Typedefs | |
typedef uint8_t | uartmux_error_t |
Error type. | |
Functions | |
void | uartmux_cfg_setup (uartmux_cfg_t *cfg) |
Config Object Initialization function. | |
UARTMUX_RETVAL | uartmux_init (uartmux_t *ctx, uartmux_cfg_t *cfg) |
Initialization function. | |
void | uartmux_generic_write (uartmux_t *ctx, char *data_buf, uint16_t data_len, uartmux_channel_t *channel) |
Generic write function. | |
int32_t | uartmux_generic_read (uartmux_t *ctx, char *data_buf, uint16_t max_len, uartmux_channel_t *channel) |
Generic read function. | |
void | uartmux_set_inhibit_communication (uartmux_t *ctx, uint8_t state) |
Set INT pin. | |
void | uartmux_choose_channel (uartmux_t *ctx, uartmux_channel_t *channel) |
Choose channel. | |
This file contains API for UART Mux Click driver.