mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
java: fix compile
This commit is contained in:
parent
f54a783710
commit
fea5a680db
@ -427,9 +427,10 @@ typedef enum {
|
||||
* @format 1H2
|
||||
* @param status
|
||||
* @param handle
|
||||
* @param packet_type
|
||||
* @param packet_types
|
||||
* @pnote packet_type is in plural to avoid clash with Java binding Packet.getPacketType()
|
||||
*/
|
||||
#define HCI_EVENT_PACKET_TYPE_CHANGED 0x1D
|
||||
#define HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED 0x1D
|
||||
|
||||
/**
|
||||
* @format 1B11321
|
||||
|
@ -332,7 +332,8 @@ typedef uint8_t sm_key_t[16];
|
||||
* @param status
|
||||
* @param channel_id
|
||||
*/
|
||||
#define DEAMON_EVENT_RFCOMM_SERVICE_REGISTERED 0x85
|
||||
#define DAEMON_EVENT_RFCOMM_SERVICE_REGISTERED 0x85
|
||||
|
||||
/**
|
||||
* @format 11
|
||||
* @param status
|
||||
|
@ -600,30 +600,30 @@ static inline uint16_t hci_event_read_clock_offset_complete_get_clock_offset(con
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field status from event hci_event_packet_type_changed
|
||||
* @brief Get field status from event hci_event_connection_packet_type_changed
|
||||
* @param event packet
|
||||
* @return status
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t hci_event_packet_type_changed_get_status(const uint8_t * event){
|
||||
static inline uint8_t hci_event_connection_packet_type_changed_get_status(const uint8_t * event){
|
||||
return event[2];
|
||||
}
|
||||
/**
|
||||
* @brief Get field handle from event hci_event_packet_type_changed
|
||||
* @brief Get field handle from event hci_event_connection_packet_type_changed
|
||||
* @param event packet
|
||||
* @return handle
|
||||
* @note: btstack_type H
|
||||
*/
|
||||
static inline hci_con_handle_t hci_event_packet_type_changed_get_handle(const uint8_t * event){
|
||||
static inline hci_con_handle_t hci_event_connection_packet_type_changed_get_handle(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field packet_type from event hci_event_packet_type_changed
|
||||
* @brief Get field packet_types from event hci_event_connection_packet_type_changed
|
||||
* @param event packet
|
||||
* @return packet_type
|
||||
* @return packet_types
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hci_event_packet_type_changed_get_packet_type(const uint8_t * event){
|
||||
static inline uint16_t hci_event_connection_packet_type_changed_get_packet_types(const uint8_t * event){
|
||||
return little_endian_read_16(event, 5);
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ def create_event(event_name, format, args):
|
||||
|
||||
def event_supported(event_name):
|
||||
parts = event_name.split('_')
|
||||
if parts[0] in ['ATT', 'BTSTACK', 'DAEMON', 'L2CAP', 'RFCOMM', 'SDP', 'GATT', 'GAP', 'HCI', 'SM']:
|
||||
if parts[0] in ['ATT', 'BTSTACK', 'DAEMON', 'L2CAP', 'RFCOMM', 'SDP', 'GATT', 'GAP', 'HCI', 'SM', 'BNEP']:
|
||||
return True
|
||||
|
||||
def class_name_for_event(event_name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user