Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
60 #define USBUART5_SUSPEND_MODE_DISABLE 0
61 #define USBUART5_SUSPEND_MODE_ENABLE 1
68 #define USBUART5_TX_DRV_BUFFER_SIZE 100
69 #define USBUART5_RX_DRV_BUFFER_SIZE 300
87 #define USBUART5_MAP_MIKROBUS( cfg, mikrobus ) \
88 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
89 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
90 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
91 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
92 cfg.cts = MIKROBUS( mikrobus, MIKROBUS_CS ); \
93 cfg.rts = MIKROBUS( mikrobus, MIKROBUS_INT );
USB UART 5 Click configuration object.
Definition: usbuart5.h:126
void usbuart5_suspend_mode(usbuart5_t *ctx, uint8_t mode)
USB UART 5 suspend mode function.
digital_out_t rts
Definition: usbuart5.h:107
digital_out_t rst
Definition: usbuart5.h:106
uint8_t usbuart5_get_cts_pin(usbuart5_t *ctx)
USB UART 5 get RTS pin state function.
uart_parity_t parity_bit
Definition: usbuart5.h:141
err_t usbuart5_generic_write(usbuart5_t *ctx, char *data_in, uint16_t len)
USB UART 5 data writing function.
uart_t uart
Definition: usbuart5.h:113
USB UART 5 Click context object.
Definition: usbuart5.h:103
void usbuart5_cfg_setup(usbuart5_cfg_t *cfg)
USB UART 5 configuration object setup function.
pin_name_t rst
Definition: usbuart5.h:133
@ USBUART5_ERROR
Definition: usbuart5.h:153
err_t usbuart5_generic_read(usbuart5_t *ctx, char *data_out, uint16_t len)
USB UART 5 data reading function.
pin_name_t rts
Definition: usbuart5.h:135
err_t usbuart5_default_cfg(usbuart5_t *ctx)
USB UART 5 default configuration function.
#define USBUART5_TX_DRV_BUFFER_SIZE
USB UART 5 driver buffer size.
Definition: usbuart5.h:68
uint32_t baud_rate
Definition: usbuart5.h:138
err_t usbuart5_init(usbuart5_t *ctx, usbuart5_cfg_t *cfg)
USB UART 5 initialization function.
@ USBUART5_OK
Definition: usbuart5.h:152
pin_name_t tx_pin
Definition: usbuart5.h:129
digital_in_t cts
Definition: usbuart5.h:110
pin_name_t cts
Definition: usbuart5.h:134
uart_stop_bits_t stop_bit
Definition: usbuart5.h:142
digital_out_t an
Definition: usbuart5.h:105
usbuart5_pin_state_t
USB UART 5 Click pin state.
Definition: usbuart5.h:162
#define USBUART5_RX_DRV_BUFFER_SIZE
Definition: usbuart5.h:69
bool uart_blocking
Definition: usbuart5.h:139
@ USBUART5_PIN_STATE_LOW
Definition: usbuart5.h:163
err_t usbuart5_send_data(usbuart5_t *ctx, uint8_t *data_out)
USB UART 5 send data function.
usbuart5_return_value_t
USB UART 5 Click return value data.
Definition: usbuart5.h:151
pin_name_t an
Definition: usbuart5.h:132
void usbuart5_set_rts_pin(usbuart5_t *ctx, usbuart5_pin_state_t state)
USB UART 5 set RTS pin state function.
@ USBUART5_PIN_STATE_HIGH
Definition: usbuart5.h:164
void usbuart5_reset_device(usbuart5_t *ctx)
USB UART 5 reset the device function.
pin_name_t rx_pin
Definition: usbuart5.h:128
void usbuart5_enable_device(usbuart5_t *ctx)
USB UART 5 enable the device function.
uart_data_bits_t data_bit
Definition: usbuart5.h:140