| STM32L - BlueNRG-1 BLE stack APIs, Events and Constants

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

bluenrg1_hal_aci.h
Go to the documentation of this file.
1 #ifndef __BLUENRG1_HAL_ACI_H__
2 #define __BLUENRG1_HAL_ACI_H__
3
4
25 #include "bluenrg1_types.h"
43 tBleStatus aci_hal_write_config_data(uint8_t Offset,
44 uint8_t Length,
45 uint8_t Value[]);
64 tBleStatus aci_hal_read_config_data(uint8_t Offset,
65 uint8_t *Data_Length,
66 uint8_t Data[]);
101 tBleStatus aci_hal_set_tx_power_level(uint8_t En_High_Power,
102 uint8_t PA_Level);
116 tBleStatus aci_hal_device_standby(void);
126 tBleStatus aci_hal_le_tx_test_packet_number(uint32_t *Number_Of_Packets);
140 tBleStatus aci_hal_tone_start(uint8_t RF_Channel);
145 tBleStatus aci_hal_tone_stop(void);
152 tBleStatus aci_hal_updater_start(void);
158 tBleStatus aci_hal_updater_reboot(void);
164 tBleStatus aci_hal_get_updater_version(uint8_t *Version);
171 tBleStatus aci_hal_get_updater_bufsize(uint8_t *Buffer_Size);
179 tBleStatus aci_hal_updater_erase_blue_flag(void);
185 tBleStatus aci_hal_updater_reset_blue_flag(void);
192 tBleStatus aci_hal_updater_erase_sector(uint32_t Address);
200 tBleStatus aci_hal_updater_prog_data_blk(uint32_t Address,
201 uint16_t Data_Length,
202 uint8_t Data[]);
211 tBleStatus aci_hal_updater_read_data_blk(uint32_t Address,
212 uint16_t Data_Length,
213 uint8_t Data[]);
221 tBleStatus aci_hal_updater_calc_crc(uint32_t Address,
222 uint8_t Num_Of_Sectors,
223 uint32_t *crc);
229 tBleStatus aci_hal_updater_hw_version(uint8_t *HW_Version);
236 tBleStatus aci_hal_set_radio_activity_mask(uint16_t Radio_Activity_Mask);
251 tBleStatus aci_hal_get_link_status(uint8_t Link_Status[8],
252 uint16_t Link_Connection_Handle[16 / 2]);
258 tBleStatus aci_hal_get_fw_build_number(uint16_t *Build_Number);
268 tBleStatus aci_hal_get_anchor_period(uint32_t *Anchor_Period,
269 uint32_t *Max_Free_Slot);
273 #endif /* __BLUENRG1_HAL_ACI_H__*/
aci_hal_set_tx_power_level
tBleStatus aci_hal_set_tx_power_level(uint8_t En_High_Power, uint8_t PA_Level)
This command sets the TX power level of the device. By controlling the EN_HIGH_POWER and the PA_LEVEL...
aci_hal_updater_hw_version
tBleStatus aci_hal_updater_hw_version(uint8_t *HW_Version)
TBD.
aci_hal_updater_prog_data_blk
tBleStatus aci_hal_updater_prog_data_blk(uint32_t Address, uint16_t Data_Length, uint8_t Data[])
This command writes a block of data to the Flash, starting from the given base address.
aci_hal_updater_reset_blue_flag
tBleStatus aci_hal_updater_reset_blue_flag(void)
Reset the BLUE flag to its proper value. This command must be called when the firmware upgrade is fin...
aci_hal_le_tx_test_packet_number
tBleStatus aci_hal_le_tx_test_packet_number(uint32_t *Number_Of_Packets)
This command returns the number of packets sent in Direct Test Mode. When the Direct TX test is start...
aci_hal_tone_stop
tBleStatus aci_hal_tone_stop(void)
This command is used to stop the previously started aci_hal_tone_start command.
aci_hal_get_link_status
tBleStatus aci_hal_get_link_status(uint8_t Link_Status[8], uint16_t Link_Connection_Handle[16/2])
This command returns the status of the 8 Bluetooth low energy links managed by the device...
aci_hal_updater_erase_blue_flag
tBleStatus aci_hal_updater_erase_blue_flag(void)
This command erases the BLUE flag in the Flash. After this operation, the updater cannot jump to the ...
aci_hal_updater_start
tBleStatus aci_hal_updater_start(void)
This command is only implemented together with the normal application. The updater does not support t...
aci_hal_updater_reboot
tBleStatus aci_hal_updater_reboot(void)
This command reboots the system. This command does not set the BLUE flag, which must be done by anoth...
aci_hal_get_fw_build_number
tBleStatus aci_hal_get_fw_build_number(uint16_t *Build_Number)
This command returns the build number associated with the firmware version currently running...
aci_hal_updater_erase_sector
tBleStatus aci_hal_updater_erase_sector(uint32_t Address)
This command erases one sector of the Flash memory. One sector is 2 KB. After erasing, the sector will be all 0xFF.
aci_hal_device_standby
tBleStatus aci_hal_device_standby(void)
Put the device in standby mode. Normally the BlueNRG will automatically enter sleep mode to save powe...
aci_hal_updater_read_data_blk
tBleStatus aci_hal_updater_read_data_blk(uint32_t Address, uint16_t Data_Length, uint8_t Data[])
This command reads a block of data from the Flash, starting from the given base address. For it is only allowed to read from the IFR flash. So the Base Address must be bigger than 0x10020000.
aci_hal_write_config_data
tBleStatus aci_hal_write_config_data(uint8_t Offset, uint8_t Length, uint8_t Value[])
This command writes a value to a low level configure data structure. It is useful to setup directly s...
aci_hal_get_anchor_period
tBleStatus aci_hal_get_anchor_period(uint32_t *Anchor_Period, uint32_t *Max_Free_Slot)
This command returns information about the Anchor Period to help application in selecting slot timing...
aci_hal_set_radio_activity_mask
tBleStatus aci_hal_set_radio_activity_mask(uint16_t Radio_Activity_Mask)
This command set the bitmask associated to aci_hal_end_of_radio_activity_event. Only the radio acitiv...
aci_hal_tone_start
tBleStatus aci_hal_tone_start(uint8_t RF_Channel)
This command starts a carrier frequency, i.e. a tone, on a specific channel. The frequency sine wave ...
aci_hal_get_updater_bufsize
tBleStatus aci_hal_get_updater_bufsize(uint8_t *Buffer_Size)
Return the maximum buffer size. This value limits the size of the data blocks that could be used on t...
aci_hal_get_updater_version
tBleStatus aci_hal_get_updater_version(uint8_t *Version)
This command returns the version of the Updater.
aci_hal_updater_calc_crc
tBleStatus aci_hal_updater_calc_crc(uint32_t Address, uint8_t Num_Of_Sectors, uint32_t *crc)
It calculates the CRC32 of one or more Flash sectors. One Flash sector is 2 KB.
aci_hal_read_config_data
tBleStatus aci_hal_read_config_data(uint8_t Offset, uint8_t *Data_Length, uint8_t Data[])
This command requests the value in the low level configure data structure. The number of read bytes c...