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

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

bluenrg1_events.h
Go to the documentation of this file.
1 #ifndef __BLUENRG1_EVENTS_H__
2 #define __BLUENRG1_EVENTS_H__
3
4
25 #include <stdint.h>
26 #include "compiler.h"
27 #include "bluenrg1_types.h"
33 /* HCI events */
35 typedef struct Handle_Packets_Pair_Entry_t_s {
36 uint16_t Connection_Handle ;
37 uint16_t HC_Num_Of_Completed_Packets ;
41 } Handle_Packets_Pair_Entry_t;
57 WEAK_FUNCTION(void hci_disconnection_complete_event(uint8_t Status,
58 uint16_t Connection_Handle,
59 uint8_t Reason));
86 WEAK_FUNCTION(void hci_encryption_change_event(uint8_t Status,
87 uint16_t Connection_Handle,
88 uint8_t Encryption_Enabled));
115 WEAK_FUNCTION(void hci_read_remote_version_information_complete_event(uint8_t Status,
116 uint16_t Connection_Handle,
117 uint8_t Version,
118 uint16_t Manufacturer_Name,
119 uint16_t Subversion));
130 WEAK_FUNCTION(void hci_hardware_error_event(uint8_t Hardware_Code));
150 WEAK_FUNCTION(void hci_number_of_completed_packets_event(uint8_t Number_of_Handles,
151 Handle_Packets_Pair_Entry_t Handle_Packets_Pair_Entry[]));
161 WEAK_FUNCTION(void hci_data_buffer_overflow_event(uint8_t Link_Type));
179 WEAK_FUNCTION(void hci_encryption_key_refresh_complete_event(uint8_t Status,
180 uint16_t Connection_Handle));
189 /* HCI LE meta events */
191 typedef struct Advertising_Report_t_s {
192 uint8_t Event_Type ;
198 uint8_t Address_Type ;
201 uint8_t Address[6] ;
203 uint8_t Length_Data ;
205 uint8_t *Data ;
207 uint8_t RSSI ;
212 } Advertising_Report_t;
261 WEAK_FUNCTION(void hci_le_connection_complete_event(uint8_t Status,
262 uint16_t Connection_Handle,
263 uint8_t Role,
264 uint8_t Peer_Address_Type,
265 uint8_t Peer_Address[6],
266 uint16_t Conn_Interval,
267 uint16_t Conn_Latency,
268 uint16_t Supervision_Timeout,
269 uint8_t Master_Clock_Accuracy));
279 WEAK_FUNCTION(void hci_le_advertising_report_event(uint8_t Num_Reports,
280 Advertising_Report_t Advertising_Report[]));
305 WEAK_FUNCTION(void hci_le_connection_update_complete_event(uint8_t Status,
306 uint16_t Connection_Handle,
307 uint16_t Conn_Interval,
308 uint16_t Conn_Latency,
309 uint16_t Supervision_Timeout));
321 WEAK_FUNCTION(void hci_le_read_remote_used_features_complete_event(uint8_t Status,
322 uint16_t Connection_Handle,
323 uint8_t LE_Features[8]));
335 WEAK_FUNCTION(void hci_le_long_term_key_request_event(uint16_t Connection_Handle,
336 uint8_t Random_Number[8],
337 uint16_t Encrypted_Diversifier));
346 /* ACI GAP events */
352 WEAK_FUNCTION(void aci_gap_limited_discoverable_event(void));
362 WEAK_FUNCTION(void aci_gap_pairing_complete_event(uint16_t Connection_Handle,
363 uint8_t Status));
371 WEAK_FUNCTION(void aci_gap_pass_key_req_event(uint16_t Connection_Handle));
380 WEAK_FUNCTION(void aci_gap_authorization_req_event(uint16_t Connection_Handle));
385 WEAK_FUNCTION(void aci_gap_slave_security_initiated_event(void));
393 WEAK_FUNCTION(void aci_gap_bond_lost_event(void));
412 WEAK_FUNCTION(void aci_gap_proc_complete_event(uint8_t Procedure_Code,
413 uint8_t Status,
414 uint8_t Data_Length,
415 uint8_t Data[]));
424 WEAK_FUNCTION(void aci_gap_addr_not_resolved_event(uint16_t Connection_Handle));
433 /* ACI GATT/ATT events */
435 typedef struct Attribute_Group_Handle_Pair_t_s {
436 uint16_t Found_Attribute_Handle ;
437 uint16_t Group_End_Handle ;
438 } Attribute_Group_Handle_Pair_t;
440 typedef struct Handle_Item_t_s {
441 uint16_t Handle ;
442 } Handle_Item_t;
458 WEAK_FUNCTION(void aci_gatt_attribute_modified_event(uint16_t Connection_Handle,
459 uint16_t Attr_Handle,
460 uint16_t Offset,
461 uint8_t Attr_Data_Length,
462 uint8_t Attr_Data[]));
469 WEAK_FUNCTION(void aci_gatt_proc_timeout_event(uint16_t Connection_Handle));
477 WEAK_FUNCTION(void aci_att_exchange_mtu_resp_event(uint16_t Connection_Handle,
478 uint16_t Server_RX_MTU));
489 WEAK_FUNCTION(void aci_att_find_info_resp_event(uint16_t Connection_Handle,
490 uint8_t Format,
491 uint8_t Event_Data_Length,
492 uint8_t Handle_UUID_Pair[]));
500 WEAK_FUNCTION(void aci_att_find_by_type_value_resp_event(uint16_t Connection_Handle,
501 uint8_t Num_of_Handle_Pair,
502 Attribute_Group_Handle_Pair_t Attribute_Group_Handle_Pair[]));
512 WEAK_FUNCTION(void aci_att_read_by_type_resp_event(uint16_t Connection_Handle,
513 uint8_t Handle_Value_Pair_Length,
514 uint8_t Data_Length,
515 uint8_t Handle_Value_Pair_Data[]));
523 WEAK_FUNCTION(void aci_att_read_resp_event(uint16_t Connection_Handle,
524 uint8_t Event_Data_Length,
525 uint8_t Attribute_Value[]));
533 WEAK_FUNCTION(void aci_att_read_blob_resp_event(uint16_t Connection_Handle,
534 uint8_t Event_Data_Length,
535 uint8_t Attribute_Value[]));
544 WEAK_FUNCTION(void aci_att_read_multiple_resp_event(uint16_t Connection_Handle,
545 uint8_t Event_Data_Length,
546 uint8_t Set_Of_Values[]));
556 WEAK_FUNCTION(void aci_att_read_by_group_type_resp_event(uint16_t Connection_Handle,
557 uint8_t Attribute_Data_Length,
558 uint8_t Data_Length,
559 uint8_t Attribute_Data_List[]));
569 WEAK_FUNCTION(void aci_att_prepare_write_resp_event(uint16_t Connection_Handle,
570 uint16_t Attribute_Handle,
571 uint16_t Offset,
572 uint8_t Part_Attribute_Value_Length,
573 uint8_t Part_Attribute_Value[]));
579 WEAK_FUNCTION(void aci_att_exec_write_resp_event(uint16_t Connection_Handle));
588 WEAK_FUNCTION(void aci_gatt_indication_event(uint16_t Connection_Handle,
589 uint16_t Attribute_Handle,
590 uint8_t Attribute_Value_Length,
591 uint8_t Attribute_Value[]));
600 WEAK_FUNCTION(void aci_gatt_notification_event(uint16_t Connection_Handle,
601 uint16_t Attribute_Handle,
602 uint8_t Attribute_Value_Length,
603 uint8_t Attribute_Value[]));
611 WEAK_FUNCTION(void aci_gatt_proc_complete_event(uint16_t Connection_Handle,
612 uint8_t Error_Code));
624 WEAK_FUNCTION(void aci_gatt_error_resp_event(uint16_t Connection_Handle,
625 uint8_t Req_Opcode,
626 uint16_t Attribute_Handle,
627 uint8_t Error_Code));
643 WEAK_FUNCTION(void aci_gatt_disc_read_char_by_uuid_resp_event(uint16_t Connection_Handle,
644 uint16_t Attribute_Handle,
645 uint8_t Attribute_Value_Length,
646 uint8_t Attribute_Value[]));
665 WEAK_FUNCTION(void aci_gatt_write_permit_req_event(uint16_t Connection_Handle,
666 uint16_t Attribute_Handle,
667 uint8_t Data_Length,
668 uint8_t Data[]));
681 WEAK_FUNCTION(void aci_gatt_read_permit_req_event(uint16_t Connection_Handle,
682 uint16_t Attribute_Handle,
683 uint16_t Offset));
696 WEAK_FUNCTION(void aci_gatt_read_multi_permit_req_event(uint16_t Connection_Handle,
697 uint8_t Number_of_Handles,
698 Handle_Item_t Handle_Item[]));
708 WEAK_FUNCTION(void aci_gatt_tx_pool_available_event(uint16_t Connection_Handle,
709 uint16_t Available_Buffers));
715 WEAK_FUNCTION(void aci_gatt_server_confirmation_event(uint16_t Connection_Handle));
732 WEAK_FUNCTION(void aci_gatt_prepare_write_permit_req_event(uint16_t Connection_Handle,
733 uint16_t Attribute_Handle,
734 uint16_t Offset,
735 uint8_t Data_Length,
736 uint8_t Data[]));
745 /* ACI L2CAP events */
753 WEAK_FUNCTION(void aci_l2cap_connection_update_resp_event(uint16_t Connection_Handle,
754 uint16_t Result));
765 WEAK_FUNCTION(void aci_l2cap_proc_timeout_event(uint16_t Connection_Handle,
766 uint8_t Data_Length,
767 uint8_t Data[]));
794 WEAK_FUNCTION(void aci_l2cap_connection_update_req_event(uint16_t Connection_Handle,
795 uint8_t Identifier,
796 uint16_t L2CAP_Length,
797 uint16_t Interval_Min,
798 uint16_t Interval_Max,
799 uint16_t Slave_Latency,
800 uint16_t Timeout_Multiplier));
812 WEAK_FUNCTION(void aci_l2cap_command_reject_event(uint16_t Connection_Handle,
813 uint8_t Identifier,
814 uint16_t Reason,
815 uint8_t Data_Length,
816 uint8_t Data[]));
825 /* ACI HAL events */
832 WEAK_FUNCTION(void aci_blue_initialized_event(uint8_t Reason_Code));
843 WEAK_FUNCTION(void aci_hal_end_of_radio_activity_event(uint8_t Last_State,
844 uint8_t Next_State,
845 uint32_t Next_State_SysTime));
908 WEAK_FUNCTION(void aci_blue_events_lost_event(uint8_t Lost_Events[8]));
927 WEAK_FUNCTION(void aci_blue_crash_info_event(uint8_t Crash_Type,
928 uint32_t SP,
929 uint32_t R0,
930 uint32_t R1,
931 uint32_t R2,
932 uint32_t R3,
933 uint32_t R12,
934 uint32_t LR,
935 uint32_t PC,
936 uint32_t xPSR,
937 uint8_t Debug_Data_Length,
938 uint8_t Debug_Data[]));
942 #endif /* __BLUENRG1_EVENTS_H__*/
Advertising_Report_t_s::Length_Data
uint8_t Length_Data
Definition: bluenrg1_events.h:204
Attribute_Group_Handle_Pair_t_s
Definition: bluenrg1_events.h:435
Handle_Packets_Pair_Entry_t_s::HC_Num_Of_Completed_Packets
uint16_t HC_Num_Of_Completed_Packets
Definition: bluenrg1_events.h:40
Advertising_Report_t_s::Event_Type
uint8_t Event_Type
Definition: bluenrg1_events.h:197
Advertising_Report_t
struct Advertising_Report_t_s Advertising_Report_t
Handle_Packets_Pair_Entry_t
struct Handle_Packets_Pair_Entry_t_s Handle_Packets_Pair_Entry_t
WEAK_FUNCTION
WEAK_FUNCTION(void hci_disconnection_complete_event(uint8_t Status, uint16_t Connection_Handle, uint8_t Reason))
The Disconnection Complete event occurs when a connection is terminated. The status parameter indicat...
Advertising_Report_t_s::RSSI
uint8_t RSSI
Definition: bluenrg1_events.h:211
Handle_Item_t
struct Handle_Item_t_s Handle_Item_t
Attribute_Group_Handle_Pair_t
struct Attribute_Group_Handle_Pair_t_s Attribute_Group_Handle_Pair_t
Handle_Packets_Pair_Entry_t_s
Definition: bluenrg1_events.h:35
Attribute_Group_Handle_Pair_t_s::Found_Attribute_Handle
uint16_t Found_Attribute_Handle
Definition: bluenrg1_events.h:436
Handle_Packets_Pair_Entry_t_s::Connection_Handle
uint16_t Connection_Handle
Definition: bluenrg1_events.h:36
Handle_Item_t_s
Definition: bluenrg1_events.h:440
Advertising_Report_t_s::Data
uint8_t * Data
Definition: bluenrg1_events.h:206
Advertising_Report_t_s
Definition: bluenrg1_events.h:191
Advertising_Report_t_s::Address
uint8_t Address[6]
Definition: bluenrg1_events.h:202
Attribute_Group_Handle_Pair_t_s::Group_End_Handle
uint16_t Group_End_Handle
Definition: bluenrg1_events.h:437
Handle_Item_t_s::Handle
uint16_t Handle
Definition: bluenrg1_events.h:441
Advertising_Report_t_s::Address_Type
uint8_t Address_Type
Definition: bluenrg1_events.h:200