42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
67#define ATA663211_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
69 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
70 cfg.inh = MIKROBUS( mikrobus, MIKROBUS_AN ); \
71 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS )
80#define ATA663211_ERROR -1
87#define ATA663211_TX_DRV_BUFFER_SIZE 100
88#define ATA663211_RX_DRV_BUFFER_SIZE 300
#define ATA663211_RX_DRV_BUFFER_SIZE
Definition ata663211.h:88
#define ATA663211_TX_DRV_BUFFER_SIZE
Definition ata663211.h:87
void ata663211_sleep_mode(ata663211_t *ctx)
Sleep mode function.
void ata663211_wake_up_device(ata663211_t *ctx)
Wake-up device function.
err_t ata663211_init(ata663211_t *ctx, ata663211_cfg_t *cfg)
Initialization function.
uint8_t ata663211_check_inh(ata663211_t *ctx)
Check inhibit pin state function.
void ata663211_cfg_setup(ata663211_cfg_t *cfg)
Config Object Initialization function.
err_t ata663211_generic_read(ata663211_t *ctx, uint8_t *data_buf, uint16_t len)
Generic read function.
err_t ata663211_generic_write(ata663211_t *ctx, uint8_t *data_buf, uint16_t len)
Generic write function.
Click configuration structure definition.
Definition ata663211.h:122
uint32_t baud_rate
Definition ata663211.h:132
pin_name_t inh
Definition ata663211.h:128
bool uart_blocking
Definition ata663211.h:133
uart_data_bits_t data_bit
Definition ata663211.h:134
pin_name_t tx_pin
Definition ata663211.h:125
pin_name_t rx_pin
Definition ata663211.h:124
uart_stop_bits_t stop_bit
Definition ata663211.h:136
pin_name_t en
Definition ata663211.h:129
uart_parity_t parity_bit
Definition ata663211.h:135
Click ctx object definition.
Definition ata663211.h:103
uart_t uart
Definition ata663211.h:111
digital_out_t en
Definition ata663211.h:105
digital_in_t inh
Definition ata663211.h:108