bletx 2.0.0.0
|
API for configuring and manipulating BLE TX Click driver. More...
Topics | |
BLE TX selection. | |
Selection of BLE TX Click driver. | |
BLE TX Registers List | |
List of registers of BLE TX Click driver. | |
BLE TX Registers Settings | |
Settings for registers of BLE TX Click driver. | |
BLE TX MikroBUS Map | |
MikroBUS pin mapping of BLE TX Click driver. | |
Functions | |
void | bletx_cfg_setup (bletx_cfg_t *cfg) |
BLE TX configuration object setup function. | |
err_t | bletx_init (bletx_t *ctx, bletx_cfg_t *cfg) |
BLE TX initialization function. | |
err_t | bletx_default_cfg (bletx_t *ctx) |
BLE TX default configuration function. | |
err_t | bletx_power_down (bletx_t *ctx) |
BLE TX full power down function. | |
err_t | bletx_power_up (bletx_t *ctx) |
BLE TX full power up function. | |
err_t | bletx_hw_reset (bletx_t *ctx) |
BLE TX hardware reset function. | |
err_t | bletx_soft_reset (bletx_t *ctx) |
BLE TX software reset function. | |
err_t | bletx_interface_selection (bletx_t *ctx, uint8_t sel_interface) |
BLE TX interface selection function. | |
err_t | bletx_slave_address_selection (bletx_t *ctx, uint8_t sel_slave_address) |
BLE TX slave address selection function. | |
err_t | bletx_baud_rate_selection (bletx_t *ctx, uint32_t sel_baud_rate) |
BLE TX baud rate selection function. | |
err_t | bletx_generic_write (bletx_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
BLE TX I2C writing function. | |
err_t | bletx_generic_read (bletx_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
BLE TX I2C reading function. | |
err_t | bletx_start_advertising (bletx_t *ctx) |
BLE TX start advertising function. | |
err_t | bletx_stop_advertising (bletx_t *ctx) |
BLE TX stop advertising function. | |
err_t | bletx_set_cfg_adv_channel (bletx_t *ctx, bletx_advch_value_t advch_data) |
BLE TX advertising channel setting function. | |
err_t | bletx_set_output_power (bletx_t *ctx, bletx_tx_output_power_value_t power_data) |
BLE TX output power setting function. | |
err_t | bletx_set_tx_data (bletx_t *ctx, bletx_txdata_value_t txdata_data) |
BLE TX TX data setting function. | |
err_t | bletx_set_eventnum (bletx_t *ctx, bletx_eventnum_value_t eventnum_data) |
BLE TX eventnum setting function. | |
err_t | bletx_set_adv_delay (bletx_t *ctx, float adv_delay_ms) |
BLE TX advertising delay setting function. | |
err_t | bletx_set_configuration (bletx_t *ctx, bletx_adv_cfg_t adv_cfg) |
BLE TX configuration setting function. | |
err_t | bletx_create_adv_data_packet (bletx_t *ctx, bletx_create_adv_data_packet_t adv_data_packet) |
BLE TX create advertising data packet function. | |
err_t | bletx_create_eddystone_uri (bletx_t *ctx, bletx_eddystone_data_t adv_data) |
BLE TX create Eddystone™ URI data packet function. | |
err_t | bletx_create_eddystone_uid (bletx_t *ctx, bletx_eddystone_data_t adv_data) |
BLE TX create Eddystone™ UID data packet function. | |
err_t | bletx_create_eddystone_tlm (bletx_t *ctx, bletx_eddystone_data_t adv_data) |
BLE TX create Eddystone™ TLM data packet function. | |
API for configuring and manipulating BLE TX Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
err_t bletx_baud_rate_selection | ( | bletx_t * | ctx, |
uint32_t | sel_baud_rate ) |
BLE TX baud rate selection function.
This function select baud rate of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | sel_baud_rate | :
|
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void bletx_cfg_setup | ( | bletx_cfg_t * | cfg | ) |
BLE TX configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See bletx_cfg_t object definition for detailed explanation. |
err_t bletx_create_adv_data_packet | ( | bletx_t * | ctx, |
bletx_create_adv_data_packet_t | adv_data_packet ) |
BLE TX create advertising data packet function.
This function create advertising data packet of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | adv_data_packet | : Advertising data packet structure. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_create_eddystone_tlm | ( | bletx_t * | ctx, |
bletx_eddystone_data_t | adv_data ) |
BLE TX create Eddystone™ TLM data packet function.
This function create advertising Eddystone™ TLM data packet of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | adv_data | : Advertising data packet structure. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_create_eddystone_uid | ( | bletx_t * | ctx, |
bletx_eddystone_data_t | adv_data ) |
BLE TX create Eddystone™ UID data packet function.
This function create advertising Eddystone™ UID data packet of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | adv_data | : Advertising data packet structure. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_create_eddystone_uri | ( | bletx_t * | ctx, |
bletx_eddystone_data_t | adv_data ) |
BLE TX create Eddystone™ URI data packet function.
This function create advertising Eddystone™ URI data packet of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | adv_data | : Advertising data packet structure. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_default_cfg | ( | bletx_t * | ctx | ) |
BLE TX default configuration function.
This function executes a default configuration of BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_generic_read | ( | bletx_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | rx_buf, | ||
uint8_t | rx_len ) |
BLE TX I2C reading function.
This function reads a desired number of data bytes starting from the selected register by using I2C serial interface.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[out] | rx_buf | : Output read data. |
[in] | rx_len | : Number of bytes to be read. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_generic_write | ( | bletx_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | tx_buf, | ||
uint8_t | tx_len ) |
BLE TX I2C writing function.
This function writes a desired number of data bytes starting from the selected register by using I2C serial interface.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[in] | tx_buf | : Data to be written. |
[in] | tx_len | : Number of bytes to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_hw_reset | ( | bletx_t * | ctx | ) |
BLE TX hardware reset function.
This function executes a hardware reset reconfigures all registers of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_init | ( | bletx_t * | ctx, |
bletx_cfg_t * | cfg ) |
BLE TX initialization function.
This function initializes all necessary pins and peripherals used for this click board™.
[out] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See bletx_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_interface_selection | ( | bletx_t * | ctx, |
uint8_t | sel_interface ) |
BLE TX interface selection function.
This function select interface of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | sel_interface | :
|
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_power_down | ( | bletx_t * | ctx | ) |
BLE TX full power down function.
This function full power-down blocks communication of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_power_up | ( | bletx_t * | ctx | ) |
BLE TX full power up function.
This function full power-up initialization of all registers of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_set_adv_delay | ( | bletx_t * | ctx, |
float | adv_delay_ms ) |
BLE TX advertising delay setting function.
This function advertising delay setting of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | adv_delay_ms | : Advertising delay in milliseconds from 20 ms to 10240 ms. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_set_cfg_adv_channel | ( | bletx_t * | ctx, |
bletx_advch_value_t | advch_data ) |
BLE TX advertising channel setting function.
This function advertising channel setting of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | advch_data | : Enum values for advertising channel setting. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_set_configuration | ( | bletx_t * | ctx, |
bletx_adv_cfg_t | adv_cfg ) |
BLE TX configuration setting function.
This function configuration setting of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | adv_cfg | : Advertising settings structure. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_set_eventnum | ( | bletx_t * | ctx, |
bletx_eventnum_value_t | eventnum_data ) |
BLE TX eventnum setting function.
This function eventnum setting of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | eventnum_data | : Enum values for the number of advertising event setting. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_set_output_power | ( | bletx_t * | ctx, |
bletx_tx_output_power_value_t | power_data ) |
BLE TX output power setting function.
This function output power setting of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | power_data | : Enum values for TX output power [ dBm ] setting. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_set_tx_data | ( | bletx_t * | ctx, |
bletx_txdata_value_t | txdata_data ) |
BLE TX TX data setting function.
This function TX data setting of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | txdata_data | : Enum values for TX data loop, burst transmission or continuous transmission setting. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_slave_address_selection | ( | bletx_t * | ctx, |
uint8_t | sel_slave_address ) |
BLE TX slave address selection function.
This function select slave address of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
[in] | sel_slave_address | : Slave address. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_soft_reset | ( | bletx_t * | ctx | ) |
BLE TX software reset function.
This function executes a software reset reconfigures all registers of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_start_advertising | ( | bletx_t * | ctx | ) |
BLE TX start advertising function.
This function start advertising of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t bletx_stop_advertising | ( | bletx_t * | ctx | ) |
BLE TX stop advertising function.
This function stop advertising of the AK1595 Bluetooth® Low Energy transmitter on the BLE TX click board™.
[in] | ctx | : Click context object. See bletx_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.