ismrx2 2.1.0.0
|
API for configuring and manipulating ISM RX 2 Click driver. More...
Topics | |
ISM RX 2 MikroBUS Map | |
MikroBUS pin mapping of ISM RX 2 Click driver. | |
Ismrx2_set | |
Functions | |
void | ismrx2_cfg_setup (ismrx2_cfg_t *cfg) |
ISM RX 2 configuration object setup function. | |
err_t | ismrx2_init (ismrx2_t *ctx, ismrx2_cfg_t *cfg) |
ISM RX 2 initialization function. | |
err_t | ismrx2_default_cfg (ismrx2_t *ctx) |
ISM RX 2 default configuration function. | |
void | ismrx2_set_rst_pin_state (ismrx2_t *ctx, uint8_t state) |
ISM RX 2 set state of RST pin function. | |
void | ismrx2_set_stb_pin_state (ismrx2_t *ctx, uint8_t state) |
ISM RX 2 set state of STB pin function. | |
uint8_t | ismrx2_get_mst_pin_state (ismrx2_t *ctx) |
ISM RX 2 get state of MST pin function. | |
uint8_t | ismrx2_get_data_pin_state (ismrx2_t *ctx) |
ISM RX 2 get state of DATA pin function. | |
err_t | ismrx2_read_manchester_data (ismrx2_t *ctx, uint8_t *data_out) |
ISM RX 2 read manchester encoded data function. | |
err_t | ismrx2_read_rf_data (ismrx2_t *ctx, uint8_t *data_out) |
ISM RX 2 read data function. | |
API for configuring and manipulating ISM RX 2 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void ismrx2_cfg_setup | ( | ismrx2_cfg_t * | cfg | ) |
ISM RX 2 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See ismrx2_cfg_t object definition for detailed explanation. |
err_t ismrx2_default_cfg | ( | ismrx2_t * | ctx | ) |
ISM RX 2 default configuration function.
This function executes a default configuration of ISM RX 2 click board.
[in] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. uint8_t ismrx2_get_data_pin_state | ( | ismrx2_t * | ctx | ) |
ISM RX 2 get state of DATA pin function.
This function get state of the DATA pin.
[in] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
uint8_t ismrx2_get_mst_pin_state | ( | ismrx2_t * | ctx | ) |
ISM RX 2 get state of MST pin function.
This function get state of the MST pin.
[in] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
err_t ismrx2_init | ( | ismrx2_t * | ctx, |
ismrx2_cfg_t * | cfg ) |
ISM RX 2 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See ismrx2_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ismrx2_read_manchester_data | ( | ismrx2_t * | ctx, |
uint8_t * | data_out ) |
ISM RX 2 read manchester encoded data function.
This function read manchester encoded data.
[in] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
[out] | data_out | : Read data. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ismrx2_read_rf_data | ( | ismrx2_t * | ctx, |
uint8_t * | data_out ) |
ISM RX 2 read data function.
This function read data.
[in] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
[out] | data_out | : Read data. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void ismrx2_set_rst_pin_state | ( | ismrx2_t * | ctx, |
uint8_t | state ) |
ISM RX 2 set state of RST pin function.
This function sets state of the RST pin.
[in] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
[in] | state | : Desired state of the pin. |
void ismrx2_set_stb_pin_state | ( | ismrx2_t * | ctx, |
uint8_t | state ) |
ISM RX 2 set state of STB pin function.
This function sets state of the STB pin.
[in] | ctx | : Click context object. See ismrx2_t object definition for detailed explanation. |
[in] | state | : Desired state of the pin. |