ism 2.0.0.0
|
API for configuring and manipulating ISM Click driver. More...
Topics | |
ISM Registers List | |
List of registers of ISM Click driver. | |
ISM Registers Settings | |
Settings for registers of ISM Click driver. | |
ISM MikroBUS Map | |
MikroBUS pin mapping of ISM Click driver. | |
Ism_cmd | |
Functions | |
void | ism_cfg_setup (ism_cfg_t *cfg) |
ISM configuration object setup function. | |
err_t | ism_init (ism_t *ctx, ism_cfg_t *cfg) |
ISM initialization function. | |
void | ism_default_cfg (ism_t *ctx) |
ISM default configuration function. | |
err_t | ism_generic_write (ism_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
ISM data writing function. | |
err_t | ism_generic_read (ism_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
ISM data reading function. | |
err_t | ism_set_cmd (ism_t *ctx, uint8_t cmd, uint8_t cmd_data) |
ISM set command function. | |
void | ism_chip_enable (ism_t *ctx) |
ISM set chip enable function. | |
void | ism_chip_disable (ism_t *ctx) |
ISM set chip disable function. | |
void | ism_set_rl_pin_state (ism_t *ctx, uint8_t rt_pin_state) |
ISM RL pin setting function. | |
void | ism_set_tl_pin_state (ism_t *ctx, uint8_t tl_pin_state) |
ISM TL pin setting function. | |
uint8_t | ism_check_interrupt_request (ism_t *ctx) |
ISM check interrupt request function. | |
err_t | ism_switch_bank (ism_t *ctx, uint8_t bank_sel) |
ISM switch bank function. | |
err_t | ism_switch_rx_mode (ism_t *ctx) |
ISM switch RX mode function. | |
err_t | ism_switch_tx_mode (ism_t *ctx) |
ISM switch TX mode function. | |
err_t | ism_device_config (ism_t *ctx) |
ISM device configuration function. | |
err_t | ism_receive_packet (ism_t *ctx, uint8_t *rx_data) |
ISM receive packet function. | |
err_t | ism_transmit_packet (ism_t *ctx, uint8_t type, uint8_t *tx_data, uint8_t len) |
ISM transmit package function. | |
API for configuring and manipulating ISM Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void ism_cfg_setup | ( | ism_cfg_t * | cfg | ) |
ISM configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See ism_cfg_t object definition for detailed explanation. |
uint8_t ism_check_interrupt_request | ( | ism_t * | ctx | ) |
ISM check interrupt request function.
This function check interrupt request, get states of the IRQ ( INT ) pin of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
0
- Low pin state, 1
- High pin state. void ism_chip_disable | ( | ism_t * | ctx | ) |
ISM set chip disable function.
This function set chip disable of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
void ism_chip_enable | ( | ism_t * | ctx | ) |
ISM set chip enable function.
This function set chip enable of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
void ism_default_cfg | ( | ism_t * | ctx | ) |
ISM default configuration function.
This function executes a default configuration of ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
err_t ism_device_config | ( | ism_t * | ctx | ) |
ISM device configuration function.
This function performs configuration of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ism_generic_read | ( | ism_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_out, | ||
uint8_t | len ) |
ISM data reading function.
This function reads a desired number of data bytes starting from the selected register by using SPI serial interface.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[out] | data_out | : Output read data. |
[in] | len | : Number of bytes to be read. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ism_generic_write | ( | ism_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_in, | ||
uint8_t | len ) |
ISM data writing function.
This function writes a desired number of data bytes starting from the selected register by using SPI serial interface.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[in] | data_in | : Data to be written. |
[in] | len | : Number of bytes to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. ISM initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See ism_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ism_receive_packet | ( | ism_t * | ctx, |
uint8_t * | rx_data ) |
ISM receive packet function.
This function receive packet of data of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[out] | rx_data | : Pointer to the memory location where receive data be stored. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ism_set_cmd | ( | ism_t * | ctx, |
uint8_t | cmd, | ||
uint8_t | cmd_data ) |
ISM set command function.
This function writes a desired command data by using SPI serial interface.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | cmd | : Command register address. |
[in] | cmd_data | : Command data to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void ism_set_rl_pin_state | ( | ism_t * | ctx, |
uint8_t | rt_pin_state ) |
ISM RL pin setting function.
This function sets the RL pin state to the desired level of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | rt_pin_state | :
|
void ism_set_tl_pin_state | ( | ism_t * | ctx, |
uint8_t | tl_pin_state ) |
ISM TL pin setting function.
This function sets the TL pin state to the desired level of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | tl_pin_state | :
|
err_t ism_switch_bank | ( | ism_t * | ctx, |
uint8_t | bank_sel ) |
ISM switch bank function.
This function switch to the desire register bank of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | bank_sel | : Bank selection
|
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ism_switch_rx_mode | ( | ism_t * | ctx | ) |
ISM switch RX mode function.
This function switch to RX mode of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ism_switch_tx_mode | ( | ism_t * | ctx | ) |
ISM switch TX mode function.
This function switch to TX mode of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t ism_transmit_packet | ( | ism_t * | ctx, |
uint8_t | type, | ||
uint8_t * | tx_data, | ||
uint8_t | len ) |
ISM transmit package function.
This function transmit the package of data of the RFM75, Low Power High Performance 2.4 GHz GFSK Transceiver on the ISM click board™.
[in] | ctx | : Click context object. See ism_t object definition for detailed explanation. |
[in] | type | : Transmission type. |
[in] | tx_data | : Pointer to the memory location where transmitted data be stored. |
[in] | len | : The number of bytes to be transmitted. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.