39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
74#define USBUARTISO_TX_DRV_BUFFER_SIZE 100
75#define USBUARTISO_RX_DRV_BUFFER_SIZE 300
93#define USBUARTISO_MAP_MIKROBUS( cfg, mikrobus ) \
94 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
95 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
96 cfg.slp = MIKROBUS( mikrobus, MIKROBUS_AN ); \
97 cfg.cts = MIKROBUS( mikrobus, MIKROBUS_CS ); \
98 cfg.pwr = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
99 cfg.rts = MIKROBUS( mikrobus, MIKROBUS_INT );
#define USBUARTISO_TX_DRV_BUFFER_SIZE
USB UART ISO driver buffer size.
Definition usbuartiso.h:74
#define USBUARTISO_RX_DRV_BUFFER_SIZE
Definition usbuartiso.h:75
uint8_t usbuartiso_get_slp_ind(usbuartiso_t *ctx)
USB UART ISO sleep indicator function.
err_t usbuartiso_init(usbuartiso_t *ctx, usbuartiso_cfg_t *cfg)
USB UART ISO initialization function.
void usbuartiso_default_cfg(usbuartiso_t *ctx)
USB UART ISO default configuration function.
uint8_t usbuartiso_request_to_send(usbuartiso_t *ctx)
USB UART ISO request to send function.
void usbuartiso_power_on(usbuartiso_t *ctx)
USB UART ISO power on function.
void usbuartiso_clear_to_send(usbuartiso_t *ctx, uint8_t cts)
USB UART ISO clear to send function.
void usbuartiso_power_off(usbuartiso_t *ctx)
USB UART ISO power off function.
err_t usbuartiso_generic_read(usbuartiso_t *ctx, uint8_t *data_out, uint16_t len)
USB UART ISO data reading function.
void usbuartiso_cfg_setup(usbuartiso_cfg_t *cfg)
USB UART ISO configuration object setup function.
err_t usbuartiso_generic_write(usbuartiso_t *ctx, uint8_t *data_in, uint16_t len)
USB UART ISO data writing function.
USB UART ISO Click configuration object.
Definition usbuartiso.h:132
pin_name_t rts
Definition usbuartiso.h:141
uint32_t baud_rate
Definition usbuartiso.h:144
pin_name_t cts
Definition usbuartiso.h:139
pin_name_t slp
Definition usbuartiso.h:138
bool uart_blocking
Definition usbuartiso.h:145
uart_data_bits_t data_bit
Definition usbuartiso.h:146
pin_name_t tx_pin
Definition usbuartiso.h:135
pin_name_t pwr
Definition usbuartiso.h:140
pin_name_t rx_pin
Definition usbuartiso.h:134
uart_stop_bits_t stop_bit
Definition usbuartiso.h:148
uart_parity_t parity_bit
Definition usbuartiso.h:147
USB UART ISO Click context object.
Definition usbuartiso.h:109
digital_out_t pwr
Definition usbuartiso.h:112
digital_in_t slp
Definition usbuartiso.h:115
uart_t uart
Definition usbuartiso.h:119
digital_in_t rts
Definition usbuartiso.h:116
digital_out_t cts
Definition usbuartiso.h:111
usbuartiso_return_value_t
USB UART ISO Click return value data.
Definition usbuartiso.h:157
@ USBUARTISO_ERROR
Definition usbuartiso.h:159
@ USBUARTISO_OK
Definition usbuartiso.h:158