ismrx3 2.0.0.0
|
API for configuring and manipulating ISM RX 3 Click driver. More...
Topics | |
ISM RX 3 Registers List | |
List of registers of ISM RX 3 Click driver. | |
ISM RX 3 Registers Settings | |
Settings for registers of ISM RX 3 Click driver. | |
ISM RX 3 MikroBUS Map | |
MikroBUS pin mapping of ISM RX 3 Click driver. | |
Functions | |
void | ismrx3_cfg_setup (ismrx3_cfg_t *cfg) |
ISM RX 3 configuration object setup function. | |
err_t | ismrx3_init (ismrx3_t *ctx, ismrx3_cfg_t *cfg) |
ISM RX 3 initialization function. | |
err_t | ismrx3_default_cfg (ismrx3_t *ctx) |
ISM RX 3 default configuration function. | |
err_t | ismrx3_generic_write (ismrx3_t *ctx, uint8_t reg, uint8_t data_in) |
ISM RX 3 data writing function. | |
err_t | ismrx3_generic_read (ismrx3_t *ctx, uint8_t reg, uint8_t *data_out) |
ISM RX 3 data reading function. | |
void | ismrx3_reset (ismrx3_t *ctx) |
Reset function. | |
uint8_t | ismrx3_get_clk (ismrx3_t *ctx) |
Read clock output. | |
uint8_t | ismrx3_get_data (ismrx3_t *ctx) |
Read data output. | |
API for configuring and manipulating ISM RX 3 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void ismrx3_cfg_setup | ( | ismrx3_cfg_t * | cfg | ) |
ISM RX 3 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See ismrx3_cfg_t object definition for detailed explanation. |
err_t ismrx3_default_cfg | ( | ismrx3_t * | ctx | ) |
ISM RX 3 default configuration function.
This function executes a default configuration of ISM RX 3 click board.
[in] | ctx | : Click context object. See ismrx3_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t ismrx3_generic_read | ( | ismrx3_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_out ) |
ISM RX 3 data reading function.
This function reads a byte from register.
[in] | ctx | : Click context object. See ismrx3_t object definition for detailed explanation. |
[in] | reg | : Register address. |
[out] | data_out | : Output read data. |
0
- Success, -1
- Error.err_t ismrx3_generic_write | ( | ismrx3_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_in ) |
ISM RX 3 data writing function.
This function writes a byte to the register.
[in] | ctx | : Click context object. See ismrx3_t object definition for detailed explanation. |
[in] | reg | : Register address. |
[in] | data_in | : Data to be written. |
0
- Success, -1
- Error.uint8_t ismrx3_get_clk | ( | ismrx3_t * | ctx | ) |
Read clock output.
This function reads int_pin state.
[in] | ctx | : Click context object. See ismrx3_t object definition for detailed explanation. |
uint8_t ismrx3_get_data | ( | ismrx3_t * | ctx | ) |
Read data output.
This function reads dat pin state.
[in] | ctx | : Click context object. See ismrx3_t object definition for detailed explanation. |
err_t ismrx3_init | ( | ismrx3_t * | ctx, |
ismrx3_cfg_t * | cfg ) |
ISM RX 3 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See ismrx3_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See ismrx3_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.