mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 17:42:51 +00:00
btstack_defines: remove map events
This commit is contained in:
parent
7a3195229c
commit
c75745a1cc
@ -4443,60 +4443,7 @@ typedef uint8_t sm_key_t[16];
|
||||
* @param subevent_code
|
||||
* @param con_handle
|
||||
*/
|
||||
#define GATTSERVICE_SUBEVENT_PACS_SERVER_DISCONNECTED 0x75u
|
||||
// MAP Meta Event Group
|
||||
|
||||
/**
|
||||
* @format 121BH1
|
||||
* @param subevent_code
|
||||
* @param map_cid
|
||||
* @param status
|
||||
* @param bd_addr
|
||||
* @param con_handle
|
||||
* @param incoming
|
||||
*/
|
||||
#define MAP_SUBEVENT_CONNECTION_OPENED 0x01u
|
||||
|
||||
/**
|
||||
* @format 12
|
||||
* @param subevent_code
|
||||
* @param map_cid
|
||||
*/
|
||||
#define MAP_SUBEVENT_CONNECTION_CLOSED 0x02u
|
||||
|
||||
/**
|
||||
* @format 121
|
||||
* @param subevent_code
|
||||
* @param map_cid
|
||||
* @param status
|
||||
*/
|
||||
#define MAP_SUBEVENT_OPERATION_COMPLETED 0x03u
|
||||
|
||||
|
||||
/**
|
||||
* @format 12LV
|
||||
* @param subevent_code
|
||||
* @param map_cid
|
||||
* @param name_len
|
||||
* @param name
|
||||
*/
|
||||
#define MAP_SUBEVENT_FOLDER_LISTING_ITEM 0x04u
|
||||
|
||||
/**
|
||||
* @format 12D
|
||||
* @param subevent_code
|
||||
* @param map_cid
|
||||
* @param handle
|
||||
*/
|
||||
#define MAP_SUBEVENT_MESSAGE_LISTING_ITEM 0x05u
|
||||
|
||||
/**
|
||||
* @format 12
|
||||
* @param subevent_code
|
||||
* @param map_cid
|
||||
*/
|
||||
#define MAP_SUBEVENT_PARSING_DONE 0x06u
|
||||
|
||||
#define GATTSERVICE_SUBEVENT_PACS_SERVER_DISCONNECTED 0x75u0
|
||||
|
||||
// MESH Meta Event Group
|
||||
|
||||
|
@ -14545,138 +14545,6 @@ static inline hci_con_handle_t gattservice_subevent_pacs_server_disconnected_get
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED
|
||||
* @param event packet
|
||||
* @return map_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field status from event MAP_SUBEVENT_CONNECTION_OPENED
|
||||
* @param event packet
|
||||
* @return status
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t map_subevent_connection_opened_get_status(const uint8_t * event){
|
||||
return event[5];
|
||||
}
|
||||
/**
|
||||
* @brief Get field bd_addr from event MAP_SUBEVENT_CONNECTION_OPENED
|
||||
* @param event packet
|
||||
* @param Pointer to storage for bd_addr
|
||||
* @note: btstack_type B
|
||||
*/
|
||||
static inline void map_subevent_connection_opened_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
|
||||
reverse_bytes(&event[6], bd_addr, 6);
|
||||
}
|
||||
/**
|
||||
* @brief Get field con_handle from event MAP_SUBEVENT_CONNECTION_OPENED
|
||||
* @param event packet
|
||||
* @return con_handle
|
||||
* @note: btstack_type H
|
||||
*/
|
||||
static inline hci_con_handle_t map_subevent_connection_opened_get_con_handle(const uint8_t * event){
|
||||
return little_endian_read_16(event, 12);
|
||||
}
|
||||
/**
|
||||
* @brief Get field incoming from event MAP_SUBEVENT_CONNECTION_OPENED
|
||||
* @param event packet
|
||||
* @return incoming
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t map_subevent_connection_opened_get_incoming(const uint8_t * event){
|
||||
return event[14];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_CLOSED
|
||||
* @param event packet
|
||||
* @return map_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t map_subevent_connection_closed_get_map_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field map_cid from event MAP_SUBEVENT_OPERATION_COMPLETED
|
||||
* @param event packet
|
||||
* @return map_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t map_subevent_operation_completed_get_map_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field status from event MAP_SUBEVENT_OPERATION_COMPLETED
|
||||
* @param event packet
|
||||
* @return status
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t map_subevent_operation_completed_get_status(const uint8_t * event){
|
||||
return event[5];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field map_cid from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
|
||||
* @param event packet
|
||||
* @return map_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t map_subevent_folder_listing_item_get_map_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field name_len from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
|
||||
* @param event packet
|
||||
* @return name_len
|
||||
* @note: btstack_type L
|
||||
*/
|
||||
static inline uint16_t map_subevent_folder_listing_item_get_name_len(const uint8_t * event){
|
||||
return little_endian_read_16(event, 5);
|
||||
}
|
||||
/**
|
||||
* @brief Get field name from event MAP_SUBEVENT_FOLDER_LISTING_ITEM
|
||||
* @param event packet
|
||||
* @return name
|
||||
* @note: btstack_type V
|
||||
*/
|
||||
static inline const uint8_t * map_subevent_folder_listing_item_get_name(const uint8_t * event){
|
||||
return &event[7];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field map_cid from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
|
||||
* @param event packet
|
||||
* @return map_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t map_subevent_message_listing_item_get_map_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field handle from event MAP_SUBEVENT_MESSAGE_LISTING_ITEM
|
||||
* @param event packet
|
||||
* @return handle
|
||||
* @note: btstack_type D
|
||||
*/
|
||||
static inline const uint8_t * map_subevent_message_listing_item_get_handle(const uint8_t * event){
|
||||
return (const uint8_t *) &event[5];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field map_cid from event MAP_SUBEVENT_PARSING_DONE
|
||||
* @param event packet
|
||||
* @return map_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field status from event MESH_SUBEVENT_PB_TRANSPORT_PDU_SENT
|
||||
|
Loading…
x
Reference in New Issue
Block a user