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 IRDA2_TX_DRV_BUFFER_SIZE 100
75#define IRDA2_RX_DRV_BUFFER_SIZE 300
93#define IRDA2_MAP_MIKROBUS( cfg, mikrobus ) \
94 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
95 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
96 cfg.mod = MIKROBUS( mikrobus, MIKROBUS_AN ); \
97 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
98 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS ); \
#define IRDA2_RX_DRV_BUFFER_SIZE
Definition irda2.h:75
#define IRDA2_TX_DRV_BUFFER_SIZE
IrDA 2 driver buffer size.
Definition irda2.h:74
void irda2_pwr_setup(irda2_t *ctx, irda2_pwr_t state)
Power Setup function.
err_t irda2_generic_read(irda2_t *ctx, uint8_t *data_out, uint16_t len)
IrDA 2 data reading function.
void irda2_reset(irda2_t *ctx)
Reset function.
err_t irda2_generic_write(irda2_t *ctx, uint8_t *data_in, uint16_t len)
IrDA 2 data writing function.
void irda2_default_cfg(irda2_t *ctx)
IrDA 2 default configuration function.
void irda2_cfg_setup(irda2_cfg_t *cfg)
IrDA 2 configuration object setup function.
err_t irda2_init(irda2_t *ctx, irda2_cfg_t *cfg)
IrDA 2 initialization function.
void irda2_mode_setup(irda2_t *ctx, irda2_mode_t state)
Mode Setup function.
irda2_pwr_t
Click power mode settings.
Definition irda2.h:172
@ IRDA2_PWR_ON
Definition irda2.h:174
@ IRDA2_PWR_OFF
Definition irda2.h:173
irda2_mode_t
Click mode settings.
Definition irda2.h:162
@ IRDA2_MODE_DATA
Definition irda2.h:164
@ IRDA2_MODE_CMD
Definition irda2.h:163
irda2_return_value_t
IrDA 2 Click return value data.
Definition irda2.h:152
@ IRDA2_OK
Definition irda2.h:153
@ IRDA2_ERROR
Definition irda2.h:154
IrDA 2 Click configuration object.
Definition irda2.h:128
uint32_t baud_rate
Definition irda2.h:139
bool uart_blocking
Definition irda2.h:140
uart_data_bits_t data_bit
Definition irda2.h:141
pin_name_t mod
Definition irda2.h:134
pin_name_t tx_pin
Definition irda2.h:131
pin_name_t rx_pin
Definition irda2.h:130
uart_stop_bits_t stop_bit
Definition irda2.h:143
pin_name_t en
Definition irda2.h:136
uart_parity_t parity_bit
Definition irda2.h:142
pin_name_t rst
Definition irda2.h:135
IrDA 2 Click context object.
Definition irda2.h:108
digital_out_t mod
Definition irda2.h:110
uart_t uart
Definition irda2.h:115
digital_out_t en
Definition irda2.h:112
digital_out_t rst
Definition irda2.h:111