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 DRV_BUFFER_SIZE 500
92#define IRDA3_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
94 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
95 cfg.mod = MIKROBUS( mikrobus, MIKROBUS_AN ); \
96 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
97 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS ); \
#define DRV_BUFFER_SIZE
IrDA 3 driver buffer size.
Definition irda3.h:74
void irda3_cfg_setup(irda3_cfg_t *cfg)
IrDA 3 configuration object setup function.
void irda3_generic_multiple_send(irda3_t *ctx, char *tx_data)
Generic Multiple Send function.
void irda3_mode_setup(irda3_t *ctx, irda3_mode_t state)
Mode Setup function.
void irda3_generic_single_send(irda3_t *ctx, char tx_data)
Generic Single Send function.
void irda3_default_cfg(irda3_t *ctx)
IrDA 3 default configuration function.
char irda3_generic_single_receive(irda3_t *ctx)
Generic Single Receive function.
void irda3_generic_multiple_receive(irda3_t *ctx, char *rx_data, char termination_char)
Generic Multiple Receive function.
void irda3_reset(irda3_t *ctx)
Reset function.
void irda3_pwr_setup(irda3_t *ctx, irda3_pwr_t state)
Power Setup function.
err_t irda3_init(irda3_t *ctx, irda3_cfg_t *cfg)
IrDA 3 initialization function.
irda3_mode_t
Click mode settings.
Definition irda3.h:167
@ IRDA3_MODE_DATA
Definition irda3.h:169
@ IRDA3_MODE_CMD
Definition irda3.h:168
irda3_return_value_t
IrDA 3 Click return value data.
Definition irda3.h:157
@ IRDA3_OK
Definition irda3.h:158
@ IRDA3_ERROR
Definition irda3.h:159
irda3_pwr_t
Click power mode settings.
Definition irda3.h:177
@ IRDA3_PWR_ON
Definition irda3.h:179
@ IRDA3_PWR_OFF
Definition irda3.h:178
IrDA 3 Click configuration object.
Definition irda3.h:130
uint32_t baud_rate
Definition irda3.h:144
bool uart_blocking
Definition irda3.h:145
uart_data_bits_t data_bit
Definition irda3.h:146
pin_name_t mod
Definition irda3.h:138
pin_name_t tx_pin
Definition irda3.h:134
pin_name_t rx_pin
Definition irda3.h:133
uart_stop_bits_t stop_bit
Definition irda3.h:148
pin_name_t en
Definition irda3.h:140
uart_parity_t parity_bit
Definition irda3.h:147
pin_name_t rst
Definition irda3.h:139
IrDA 3 Click context object.
Definition irda3.h:107
digital_out_t mod
Definition irda3.h:110
uart_t uart
Definition irda3.h:116
digital_out_t en
Definition irda3.h:112
digital_out_t rst
Definition irda3.h:111