39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
73#define IRDA4_SHUTDOWN_DISABLED 0x00
74#define IRDA4_SHUTDOWN_ENABLED 0x01
80#define IRDA4_RESET_DISABLED 0x00
81#define IRDA4_RESET_ENABLED 0x01
87#define IRDA4_DRV_BUFFER_SIZE 300
105#define IRDA4_MAP_MIKROBUS( cfg, mikrobus ) \
106 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
107 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
108 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
109 cfg.sd = MIKROBUS( mikrobus, MIKROBUS_PWM );
#define IRDA4_DRV_BUFFER_SIZE
IrDA 4 driver buffer size.
Definition irda4.h:87
void irda4_set_tx_shutdown(irda4_t *ctx, uint8_t sd_state)
IrDA 4 TX shutdown function.
err_t irda4_init(irda4_t *ctx, irda4_cfg_t *cfg)
IrDA 4 initialization function.
void irda4_cfg_setup(irda4_cfg_t *cfg)
IrDA 4 configuration object setup function.
err_t irda4_generic_write(irda4_t *ctx, uint8_t *data_in, uint16_t len)
IrDA 4 data writing function.
void irda4_set_reset_state(irda4_t *ctx, uint8_t rst_state)
IrDA 4 set reset pin state function.
void irda_hw_reset(irda4_t *ctx)
IrDA 4 hardware reset function.
err_t irda4_generic_read(irda4_t *ctx, uint8_t *data_out, uint16_t len)
IrDA 4 data reading function.
irda4_return_value_t
IrDA 4 Click return value data.
Definition irda4.h:161
@ IRDA4_OK
Definition irda4.h:162
@ IRDA4_ERROR
Definition irda4.h:163
IrDA 4 Click configuration object.
Definition irda4.h:138
pin_name_t sd
Definition irda4.h:145
uint32_t baud_rate
Definition irda4.h:148
bool uart_blocking
Definition irda4.h:149
uart_data_bits_t data_bit
Definition irda4.h:150
pin_name_t tx_pin
Definition irda4.h:141
pin_name_t rx_pin
Definition irda4.h:140
uart_stop_bits_t stop_bit
Definition irda4.h:152
uart_parity_t parity_bit
Definition irda4.h:151
pin_name_t rst
Definition irda4.h:144
IrDA 4 Click context object.
Definition irda4.h:119
digital_out_t sd
Definition irda4.h:122
uart_t uart
Definition irda4.h:125
digital_out_t rst
Definition irda4.h:121