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 ATA663254_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
69 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
70 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
71 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS );
78#define ATA663254_RETVAL uint8_t
80#define ATA663254_OK 0x00
81#define ATA663254_INIT_ERROR 0xFF
88#define DRV_RX_BUFFER_SIZE 500
154 // End constants group
162 // End variable group
#define DRV_RX_BUFFER_SIZE
Definition ata663254.h:88
#define ATA663254_RETVAL
Definition ata663254.h:78
void ata663254_generic_write(ata663254_t *ctx, char *data_buf, uint16_t len)
Generic multi write function.
void ata663254_cfg_setup(ata663254_cfg_t *cfg)
Config Object Initialization function.
int32_t ata663254_generic_read(ata663254_t *ctx, char *data_buf, uint16_t len)
Generic multi read function.
void ata663254_enable(ata663254_t *ctx, uint8_t state)
Chip enable function.
ATA663254_RETVAL ata663254_init(ata663254_t *ctx, ata663254_cfg_t *cfg)
Initialization function.
uint8_t ata663254_get_rst_state(ata663254_t *ctx)
Undervoltage detect function.
Click configuration structure definition.
Definition ata663254.h:123
uint32_t baud_rate
Definition ata663254.h:137
bool uart_blocking
Definition ata663254.h:138
uart_data_bits_t data_bit
Definition ata663254.h:139
pin_name_t tx_pin
Definition ata663254.h:127
pin_name_t rx_pin
Definition ata663254.h:126
uart_stop_bits_t stop_bit
Definition ata663254.h:141
pin_name_t en
Definition ata663254.h:133
uart_parity_t parity_bit
Definition ata663254.h:140
pin_name_t rst
Definition ata663254.h:132
Click ctx object definition.
Definition ata663254.h:103
uart_t uart
Definition ata663254.h:112
digital_in_t rst
Definition ata663254.h:108
digital_out_t en
Definition ata663254.h:105