39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
66#define ISMRX2_PIN_STATE_HIGH 1
67#define ISMRX2_PIN_STATE_LOW 0
68#define ISMRX2_DEFAULT_SYNC_BYTE 0xCE35
69#define ISMRX2_FSK_DEFAULT_SYNC_BYTE 0xFF
88#define ISMRX2_MAP_MIKROBUS( cfg, mikrobus ) \
89 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
90 cfg.stb = MIKROBUS( mikrobus, MIKROBUS_CS ); \
91 cfg.mst = MIKROBUS( mikrobus, MIKROBUS_INT ); \
92 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX )
err_t ismrx2_read_rf_data(ismrx2_t *ctx, uint8_t *data_out)
ISM RX 2 read data function.
err_t ismrx2_read_manchester_data(ismrx2_t *ctx, uint8_t *data_out)
ISM RX 2 read manchester encoded data function.
uint8_t ismrx2_get_data_pin_state(ismrx2_t *ctx)
ISM RX 2 get state of DATA pin function.
void ismrx2_cfg_setup(ismrx2_cfg_t *cfg)
ISM RX 2 configuration object setup function.
uint8_t ismrx2_get_mst_pin_state(ismrx2_t *ctx)
ISM RX 2 get state of MST pin function.
void ismrx2_set_stb_pin_state(ismrx2_t *ctx, uint8_t state)
ISM RX 2 set state of STB pin function.
void ismrx2_set_rst_pin_state(ismrx2_t *ctx, uint8_t state)
ISM RX 2 set state of RST pin function.
err_t ismrx2_default_cfg(ismrx2_t *ctx)
ISM RX 2 default configuration function.
err_t ismrx2_init(ismrx2_t *ctx, ismrx2_cfg_t *cfg)
ISM RX 2 initialization function.
ismrx2_return_value_t
ISM RX 2 Click return value data.
Definition ismrx2.h:129
@ ISMRX2_OK
Definition ismrx2.h:130
@ ISMRX2_ERROR
Definition ismrx2.h:131
ISM RX 2 Click configuration object.
Definition ismrx2.h:116
pin_name_t mst
Definition ismrx2.h:120
pin_name_t rx_pin
Definition ismrx2.h:119
pin_name_t rst
Definition ismrx2.h:117
pin_name_t stb
Definition ismrx2.h:118
ISM RX 2 Click context object.
Definition ismrx2.h:102
digital_in_t mst
Definition ismrx2.h:107
digital_in_t rx_pin
Definition ismrx2.h:106
digital_out_t stb
Definition ismrx2.h:104
digital_out_t rst
Definition ismrx2.h:103