// Packets for interfaces
packet DiscoveryCommand : CommandPacket { _payload_, }
-packet CreateConnectionCommand : CommandPacket { _payload_, }
packet ConnectionManagementCommand : CommandPacket { _payload_, }
packet SecurityCommand : CommandPacket { _payload_, }
packet ScoConnectionCommand : CommandPacket { _payload_, }
packet LeAdvertisingCommand : CommandPacket { _payload_, }
-packet LeCreateConnectionCommand : CommandPacket { _payload_, }
packet LeConnectionManagementCommand : CommandPacket { _payload_, }
packet LeSecurityCommand : CommandPacket { _payload_, }
packet VendorCommand : CommandPacket { _payload_, }
SUPPORTED = 1,
}
-enum ErrorCodes : 8 {
+enum ErrorCode: 8 {
SUCCESS = 0x00,
UNKNOWN_HCI_COMMAND = 0x01,
UNKNOWN_CONNECTION = 0x02,
}
packet CommandStatus : EventPacket (event_code = COMMAND_STATUS){
- status : ErrorCodes, // SUCCESS means PENDING
+ status : ErrorCode, // SUCCESS means PENDING
num_hci_command_packets : 8,
command_op_code : OpCode,
_payload_,
}
packet InquiryCancelComplete : CommandComplete (command_op_code = INQUIRY_CANCEL) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet PeriodicInquiryMode : DiscoveryCommand (op_code = PERIODIC_INQUIRY_MODE) {
}
packet PeriodicInquiryModeComplete : CommandComplete (command_op_code = PERIODIC_INQUIRY_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ExitPeriodicInquiryMode : DiscoveryCommand (op_code = EXIT_PERIODIC_INQUIRY_MODE) {
}
packet ExitPeriodicInquiryModeComplete : CommandComplete (command_op_code = EXIT_PERIODIC_INQUIRY_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum PageScanRepetitionMode : 8 {
ALLOW_ROLE_SWITCH = 0x01,
}
-packet CreateConnection : CreateConnectionCommand (op_code = CREATE_CONNECTION) {
+packet CreateConnection : ConnectionManagementCommand (op_code = CREATE_CONNECTION) {
bd_addr : Address,
packet_type : 16,
page_scan_repetition_mode : PageScanRepetitionMode,
packet DisconnectStatus : CommandStatus (command_op_code = DISCONNECT) {
}
-packet CreateConnectionCancel : CreateConnectionCommand (op_code = CREATE_CONNECTION_CANCEL) {
+packet CreateConnectionCancel : ConnectionManagementCommand (op_code = CREATE_CONNECTION_CANCEL) {
bd_addr : Address,
}
packet CreateConnectionCancelComplete : CommandComplete (command_op_code = CREATE_CONNECTION_CANCEL) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
REMAIN_SLAVE = 0x01,
}
-packet AcceptConnectionRequest : CreateConnectionCommand (op_code = ACCEPT_CONNECTION_REQUEST) {
+packet AcceptConnectionRequest : ConnectionManagementCommand (op_code = ACCEPT_CONNECTION_REQUEST) {
bd_addr : Address,
role : AcceptConnectionRequestRole,
}
UNACCEPTABLE_BD_ADDR = 0x0F,
}
-packet RejectConnectionRequest : CreateConnectionCommand (op_code = REJECT_CONNECTION_REQUEST) {
+packet RejectConnectionRequest : ConnectionManagementCommand (op_code = REJECT_CONNECTION_REQUEST) {
bd_addr : Address,
reason : RejectConnectionReason,
}
}
packet LinkKeyRequestReplyComplete : CommandComplete (command_op_code = LINK_KEY_REQUEST_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet LinkKeyRequestNegativeReply : SecurityCommand (op_code = LINK_KEY_REQUEST_NEGATIVE_REPLY) {
}
packet LinkKeyRequestNegativeReplyComplete : CommandComplete (command_op_code = LINK_KEY_REQUEST_NEGATIVE_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet PinCodeRequestReplyComplete : CommandComplete (command_op_code = PIN_CODE_REQUEST_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet PinCodeRequestNegativeReplyComplete : CommandComplete (command_op_code = PIN_CODE_REQUEST_NEGATIVE_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet RemoteNameRequestCancelComplete : CommandComplete (command_op_code = REMOTE_NAME_REQUEST_CANCEL) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet ReadLmpHandleComplete : CommandComplete (command_op_code = READ_LMP_HANDLE) {
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
lmp_handle : 8,
}
packet IoCapabilityRequestReplyComplete : CommandComplete (command_op_code = IO_CAPABILITY_REQUEST_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet UserConfirmationRequestReplyComplete : CommandComplete (command_op_code = USER_CONFIRMATION_REQUEST_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet UserConfirmationRequestNegativeReplyComplete : CommandComplete (command_op_code = USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet UserPasskeyReplyComplete : CommandComplete (command_op_code = USER_PASSKEY_REQUEST_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet UserPasskeyRequestNegativeReplyComplete : CommandComplete (command_op_code = USER_PASSKEY_REQUEST_NEGATIVE_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet RemoteOobDataRequestReplyComplete : CommandComplete (command_op_code = REMOTE_OOB_DATA_REQUEST_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet RemoteOobDataRequestNegativeReplyComplete : CommandComplete (command_op_code = REMOTE_OOB_DATA_REQUEST_NEGATIVE_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
packet IoCapabilityRequestNegativeReply : SecurityCommand (op_code = IO_CAPABILITY_REQUEST_NEGATIVE_REPLY) {
bd_addr : Address,
- reason : ErrorCodes,
+ reason : ErrorCode,
}
packet IoCapabilityRequestNegativeReplyComplete : CommandComplete (command_op_code = IO_CAPABILITY_REQUEST_NEGATIVE_REPLY) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet SetEventMaskComplete : CommandComplete (command_op_code = SET_EVENT_MASK) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet Reset : CommandPacket (op_code = RESET) {
}
packet ResetComplete : CommandComplete (command_op_code = RESET) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet SetEventFilter : CommandPacket (op_code = SET_EVENT_FILTER) {
}
packet ReadStoredLinkKeyComplete : CommandComplete (command_op_code = READ_STORED_LINK_KEY) {
- status : ErrorCodes,
+ status : ErrorCode,
max_num_keys : 16,
num_keys_read : 16,
}
}
packet WriteStoredLinkKeyComplete : CommandComplete (command_op_code = WRITE_STORED_LINK_KEY) {
- status : ErrorCodes,
+ status : ErrorCode,
num_keys_written : 8,
}
}
packet DeleteStoredLinkKeyComplete : CommandComplete (command_op_code = DELETE_STORED_LINK_KEY) {
- status : ErrorCodes,
+ status : ErrorCode,
num_keys_deleted : 8,
}
}
packet WriteLocalNameComplete : CommandComplete (command_op_code = WRITE_LOCAL_NAME) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ReadLocalName : CommandPacket (op_code = READ_LOCAL_NAME) {
}
packet ReadLocalNameComplete : CommandComplete (command_op_code = READ_LOCAL_NAME) {
- status : ErrorCodes,
+ status : ErrorCode,
_payload_,
}
-packet ReadConnectionAcceptTimeout : CreateConnectionCommand (op_code = READ_CONNECTION_ACCEPT_TIMEOUT) {
+packet ReadConnectionAcceptTimeout : ConnectionManagementCommand (op_code = READ_CONNECTION_ACCEPT_TIMEOUT) {
_payload_, // placeholder (unimplemented)
}
-packet WriteConnectionAcceptTimeout : CreateConnectionCommand (op_code = WRITE_CONNECTION_ACCEPT_TIMEOUT) {
+packet WriteConnectionAcceptTimeout : ConnectionManagementCommand (op_code = WRITE_CONNECTION_ACCEPT_TIMEOUT) {
_payload_, // placeholder (unimplemented)
}
}
packet ReadScanEnableComplete : CommandComplete (command_op_code = READ_SCAN_ENABLE) {
- status : ErrorCodes,
+ status : ErrorCode,
scan_enable : ScanEnable,
}
}
packet WriteScanEnableComplete : CommandComplete (command_op_code = WRITE_SCAN_ENABLE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ReadPageScanActivity : DiscoveryCommand (op_code = READ_PAGE_SCAN_ACTIVITY) {
}
packet ReadPageScanActivityComplete : CommandComplete (command_op_code = READ_PAGE_SCAN_ACTIVITY) {
- status : ErrorCodes,
+ status : ErrorCode,
page_scan_interval : 16, // Range: 0x0012 to 0x1000; only even values are valid * 0x625 ms
page_scan_window : 16, // 0x0011 to PageScanInterval
}
}
packet WritePageScanActivityComplete : CommandComplete (command_op_code = WRITE_PAGE_SCAN_ACTIVITY) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ReadInquiryScanActivity : DiscoveryCommand (op_code = READ_INQUIRY_SCAN_ACTIVITY) {
}
packet ReadAuthenticationEnableComplete : CommandComplete (command_op_code = READ_AUTHENTICATION_ENABLE) {
- status : ErrorCodes,
+ status : ErrorCode,
authentication_enable : AuthenticationEnable,
}
}
packet WriteAuthenticationEnableComplete : CommandComplete (command_op_code = WRITE_AUTHENTICATION_ENABLE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ReadClassOfDevice : DiscoveryCommand (op_code = READ_CLASS_OF_DEVICE) {
}
packet ReadClassOfDeviceComplete : CommandComplete (command_op_code = READ_CLASS_OF_DEVICE) {
- status : ErrorCodes,
+ status : ErrorCode,
class_of_device : ClassOfDevice,
}
}
packet WriteClassOfDeviceComplete : CommandComplete (command_op_code = WRITE_CLASS_OF_DEVICE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ReadVoiceSetting : CommandPacket (op_code = READ_VOICE_SETTING) {
}
packet HostBufferSizeComplete : CommandComplete (command_op_code = HOST_BUFFER_SIZE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet HostNumCompletedPackets : CommandPacket (op_code = HOST_NUM_COMPLETED_PACKETS) {
}
packet HostNumCompletedPacketsError : CommandComplete (command_op_code = HOST_NUM_COMPLETED_PACKETS) {
- error_code : ErrorCodes,
+ error_code : ErrorCode,
}
packet ReadLinkSupervisionTimeout : ConnectionManagementCommand (op_code = READ_LINK_SUPERVISION_TIMEOUT) {
}
packet ReadLinkSupervisionTimeoutComplete : CommandComplete (command_op_code = READ_LINK_SUPERVISION_TIMEOUT) {
- status : ErrorCodes,
+ status : ErrorCode,
handle : 12,
_reserved_ : 4,
link_supervision_timeout : 16, // 0x001-0xFFFF (0.625ms-40.9s)
}
packet WriteLinkSupervisionTimeoutComplete : CommandComplete (command_op_code = WRITE_LINK_SUPERVISION_TIMEOUT) {
- status : ErrorCodes,
+ status : ErrorCode,
handle : 12,
_reserved_ : 4,
}
}
packet ReadInquiryScanTypeComplete : CommandComplete (command_op_code = READ_INQUIRY_SCAN_TYPE) {
- status : ErrorCodes,
+ status : ErrorCode,
inquiry_scan_type : InquiryScanType,
}
}
packet WriteInquiryScanTypeComplete : CommandComplete (command_op_code = WRITE_INQUIRY_SCAN_TYPE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum InquiryMode : 8 {
}
packet ReadInquiryModeComplete : CommandComplete (command_op_code = READ_INQUIRY_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
inquiry_mode : InquiryMode,
}
}
packet WriteInquiryModeComplete : CommandComplete (command_op_code = WRITE_INQUIRY_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum PageScanType : 8 {
}
packet ReadPageScanTypeComplete : CommandComplete (command_op_code = READ_PAGE_SCAN_TYPE) {
- status : ErrorCodes,
+ status : ErrorCode,
page_scan_type : PageScanType,
}
}
packet WritePageScanTypeComplete : CommandComplete (command_op_code = WRITE_PAGE_SCAN_TYPE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ReadAfhChannelAssessmentMode : CommandPacket (op_code = READ_AFH_CHANNEL_ASSESSMENT_MODE) {
}
packet ReadExtendedInquiryResponseComplete : CommandComplete (command_op_code = READ_EXTENDED_INQUIRY_RESPONSE) {
- status : ErrorCodes,
+ status : ErrorCode,
fec_required : FecRequired,
_payload_,
}
}
packet WriteExtendedInquiryResponseComplete : CommandComplete (command_op_code = WRITE_EXTENDED_INQUIRY_RESPONSE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet RefreshEncryptionKey : SecurityCommand (op_code = REFRESH_ENCRYPTION_KEY) {
packet RefreshEncryptionKeyStatus : CommandStatus (command_op_code = REFRESH_ENCRYPTION_KEY) {
}
-enum SimplePairingMode : 8 {
- NOT_SET = 0x00,
- ENABLED = 0x01,
-}
-
packet ReadSimplePairingMode : SecurityCommand (op_code = READ_SIMPLE_PAIRING_MODE) {
}
packet ReadSimplePairingModeComplete : CommandComplete (command_op_code = READ_SIMPLE_PAIRING_MODE) {
- status : ErrorCodes,
- simple_pairing_mode : SimplePairingMode,
+ status : ErrorCode,
+ simple_pairing_mode : Enable,
}
packet WriteSimplePairingMode : SecurityCommand (op_code = WRITE_SIMPLE_PAIRING_MODE) {
- simple_pairing_mode : SimplePairingMode,
+ simple_pairing_mode : Enable,
}
packet WriteSimplePairingModeComplete : CommandComplete (command_op_code = WRITE_SIMPLE_PAIRING_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet ReadLocalOobData : SecurityCommand (op_code = READ_LOCAL_OOB_DATA) {
}
packet ReadLocalOobDataComplete : CommandComplete (command_op_code = READ_LOCAL_OOB_DATA) {
- status : ErrorCodes,
+ status : ErrorCode,
clo : 64,
chi : 64,
rlo : 64,
}
packet ReadInquiryResponseTransmitPowerLevelComplete : CommandComplete (command_op_code = READ_INQUIRY_RESPONSE_TRANSMIT_POWER_LEVEL) {
- status : ErrorCodes,
+ status : ErrorCode,
tx_power : 8, // (-70dBm to 20dBm)
}
}
packet WriteInquiryResponseTransmitPowerLevelComplete : CommandComplete (command_op_code = WRITE_INQUIRY_TRANSMIT_POWER_LEVEL) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum KeypressNotificationType : 8 {
}
packet SendKeypressNotificationComplete : CommandComplete (command_op_code = SEND_KEYPRESS_NOTIFICATION) {
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
-enum LeSupportedHost : 8 {
- DISABLED = 0x00, // Default
- ENABLED = 0x01,
-}
-
enum SimultaneousLeHost : 8 {
DISABLED = 0x00,
}
}
packet ReadLeHostSupportComplete : CommandComplete (command_op_code = READ_LE_HOST_SUPPORT) {
- status : ErrorCodes,
- le_supported_host : LeSupportedHost,
+ status : ErrorCode,
+ le_supported_host : Enable,
simultaneous_le_host : SimultaneousLeHost,
}
packet WriteLeHostSupport : CommandPacket (op_code = WRITE_LE_HOST_SUPPORT) {
- le_supported_host : LeSupportedHost,
+ le_supported_host : Enable,
simultaneous_le_host : SimultaneousLeHost,
}
packet WriteLeHostSupportComplete : CommandComplete (command_op_code = WRITE_LE_HOST_SUPPORT) {
- status : ErrorCodes,
-}
-
-enum SecureConnectionsHostSupport : 8 {
- DISABLED = 0x00, // Default
- ENABLED = 0x01,
+ status : ErrorCode,
}
packet ReadSecureConnectionsHostSupport : CommandPacket (op_code = READ_SECURE_CONNECTIONS_HOST_SUPPORT) {
}
packet ReadSecureConnectionsHostSupportComplete : CommandComplete (command_op_code = READ_SECURE_CONNECTIONS_HOST_SUPPORT) {
- status : ErrorCodes,
- secure_connections_host_support : SecureConnectionsHostSupport,
+ status : ErrorCode,
+ secure_connections_host_support : Enable,
}
packet WriteSecureConnectionsHostSupport : CommandPacket (op_code = WRITE_SECURE_CONNECTIONS_HOST_SUPPORT) {
- secure_connections_host_support : SecureConnectionsHostSupport,
+ secure_connections_host_support : Enable,
}
packet WriteSecureConnectionsHostSupportComplete : CommandComplete (command_op_code = WRITE_SECURE_CONNECTIONS_HOST_SUPPORT) {
- status : ErrorCodes,
+ status : ErrorCode,
}
// INFORMATIONAL_PARAMETERS
}
packet ReadLoopbackModeComplete : CommandComplete (command_op_code = READ_LOOPBACK_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
loopback_mode : LoopbackMode,
}
}
packet WriteLoopbackModeComplete : CommandComplete (command_op_code = WRITE_LOOPBACK_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet EnableDeviceUnderTestMode : CommandPacket (op_code = ENABLE_DEVICE_UNDER_TEST_MODE) {
}
packet EnableDeviceUnderTestModeComplete : CommandComplete (command_op_code = ENABLE_DEVICE_UNDER_TEST_MODE) {
- status : ErrorCodes,
-}
-
-enum SimplePairingDebugMode : 8 {
- DISABLED = 0x00,
- ENABLED = 0x01,
+ status : ErrorCode,
}
packet WriteSimplePairingDebugMode : CommandPacket (op_code = WRITE_SIMPLE_PAIRING_DEBUG_MODE) {
- simple_pairing_debug_mode : SimplePairingDebugMode,
+ simple_pairing_debug_mode : Enable,
}
packet WriteSimplePairingDebugModeComplete : CommandComplete (command_op_code = WRITE_SIMPLE_PAIRING_DEBUG_MODE) {
- status : ErrorCodes,
-}
-
-enum Dm1AcluMode : 8 {
- DISABLED = 0x00,
- ENABLED = 0x01,
-}
-
-enum EscoLoopbackMode : 8 {
- DISABLED = 0x00,
- ENABLED = 0x01,
+ status : ErrorCode,
}
packet WriteSecureConnectionsTestMode : CommandPacket (op_code = WRITE_SECURE_CONNECTIONS_TEST_MODE) {
connection_handle : 12,
_reserved_ : 4,
- dm1_aclu_mode : Dm1AcluMode,
- esco_loopback_mode : EscoLoopbackMode,
+ dm1_aclu_mode : Enable,
+ esco_loopback_mode : Enable,
}
packet WriteSecureConnectionsTestModeComplete : CommandComplete (command_op_code = WRITE_SECURE_CONNECTIONS_TEST_MODE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
// LE_CONTROLLER
}
packet LeSetEventMaskComplete : CommandComplete (command_op_code = LE_SET_EVENT_MASK) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet LeReadBufferSize : CommandPacket (op_code = LE_READ_BUFFER_SIZE) {
}
packet LeReadBufferSizeComplete : CommandComplete (command_op_code = LE_READ_BUFFER_SIZE) {
- status : ErrorCodes,
+ status : ErrorCode,
hc_le_data_packet_length : 16,
hc_total_num_le_packets : 8,
}
}
packet LeReadLocalSupportedFeaturesComplete : CommandComplete (command_op_code = LE_READ_LOCAL_SUPPORTED_FEATURES) {
- status : ErrorCodes,
+ status : ErrorCode,
le_features : 64,
}
}
packet LeSetRandomAddressComplete : CommandComplete (command_op_code = LE_SET_RANDOM_ADDRESS) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum AdvertisingFilterPolicy : 1 {
}
packet LeSetAdvertisingParametersComplete : CommandComplete (command_op_code = LE_SET_ADVERTISING_PARAMETERS) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet LeReadAdvertisingChannelTxPower : LeAdvertisingCommand (op_code = LE_READ_ADVERTISING_CHANNEL_TX_POWER) {
}
packet LeReadAdvertisingChannelTxPowerComplete : CommandComplete (command_op_code = LE_READ_ADVERTISING_CHANNEL_TX_POWER) {
- status : ErrorCodes,
+ status : ErrorCode,
transmit_power_level : 8, // (-20dBm to 10dBm) Accuracy: +/-4dB
}
}
packet LeSetAdvertisingDataComplete : CommandComplete (command_op_code = LE_SET_ADVERTISING_DATA) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet LeSetScanResponseData : LeAdvertisingCommand (op_code = LE_SET_SCAN_RESPONSE_DATA) {
}
packet LeSetScanResponseDataComplete : CommandComplete (command_op_code = LE_SET_SCAN_RESPONSE_DATA) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet LeSetAdvertisingEnable : LeAdvertisingCommand (op_code = LE_SET_ADVERTISING_ENABLE) {
}
packet LeSetAdvertisingEnableComplete : CommandComplete (command_op_code = LE_SET_ADVERTISING_ENABLE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum LeScanType : 8 {
}
packet LeSetScanParametersComplete : CommandComplete (command_op_code = LE_SET_SCAN_PARAMETERS) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet LeSetScanEnable : LeAdvertisingCommand (op_code = LE_SET_SCAN_ENABLE) {
}
packet LeSetScanEnableComplete : CommandComplete (command_op_code = LE_SET_SCAN_ENABLE) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum InitiatorFilterPolicy : 8 {
RESOLVABLE_OR_RANDOM_ADDRESS = 0x03,
}
-packet LeCreateConnection : LeCreateConnectionCommand (op_code = LE_CREATE_CONNECTION) {
+packet LeCreateConnection : LeConnectionManagementCommand (op_code = LE_CREATE_CONNECTION) {
le_scan_interval : 16, // 0x0004-0x4000
le_scan_window : 16, // < = LeScanInterval
initiator_filter_policy : InitiatorFilterPolicy,
packet LeCreateConnectionStatus : CommandStatus (command_op_code = LE_CREATE_CONNECTION) {
}
-packet LeCreateConnectionCancel : LeCreateConnectionCommand (op_code = LE_CREATE_CONNECTION_CANCEL) {
+packet LeCreateConnectionCancel : LeConnectionManagementCommand (op_code = LE_CREATE_CONNECTION_CANCEL) {
}
packet LeCreateConnectionCancelComplete : CommandComplete (command_op_code = LE_CREATE_CONNECTION_CANCEL) {
- status : ErrorCodes,
+ status : ErrorCode,
}
-packet LeReadWhiteListSize : LeCreateConnectionCommand (op_code = LE_READ_WHITE_LIST_SIZE) {
+packet LeReadWhiteListSize : LeConnectionManagementCommand (op_code = LE_READ_WHITE_LIST_SIZE) {
}
packet LeReadWhiteListSizeComplete : CommandComplete (command_op_code = LE_READ_WHITE_LIST_SIZE) {
- status : ErrorCodes,
+ status : ErrorCode,
white_list_size : 8,
}
-packet LeClearWhiteList : LeCreateConnectionCommand (op_code = LE_CLEAR_WHITE_LIST) {
+packet LeClearWhiteList : LeConnectionManagementCommand (op_code = LE_CLEAR_WHITE_LIST) {
}
packet LeClearWhiteListComplete : CommandComplete (command_op_code = LE_CLEAR_WHITE_LIST) {
- status : ErrorCodes,
+ status : ErrorCode,
}
enum WhiteListAddressType : 8 {
ANONYMOUS_ADVERTISERS = 0xFF,
}
-packet LeAddDeviceToWhiteList : LeCreateConnectionCommand (op_code = LE_ADD_DEVICE_TO_WHITE_LIST) {
+packet LeAddDeviceToWhiteList : LeConnectionManagementCommand (op_code = LE_ADD_DEVICE_TO_WHITE_LIST) {
address_type : WhiteListAddressType,
address : Address,
}
packet LeAddDeviceToWhiteListComplete : CommandComplete (command_op_code = LE_ADD_DEVICE_TO_WHITE_LIST) {
- status : ErrorCodes,
+ status : ErrorCode,
}
-packet LeRemoveDeviceFromWhiteList : LeCreateConnectionCommand (op_code = LE_REMOVE_DEVICE_FROM_WHITE_LIST) {
+packet LeRemoveDeviceFromWhiteList : LeConnectionManagementCommand (op_code = LE_REMOVE_DEVICE_FROM_WHITE_LIST) {
address_type : WhiteListAddressType,
address : Address,
}
packet LeRemoveDeviceFromWhiteListComplete : CommandComplete (command_op_code = LE_REMOVE_DEVICE_FROM_WHITE_LIST) {
- status : ErrorCodes,
+ status : ErrorCode,
}
packet LeConnectionUpdate : LeConnectionManagementCommand (op_code = LE_CONNECTION_UPDATE) {
_payload_, // placeholder (unimplemented)
}
-packet LeExtendedCreateConnection : LeCreateConnectionCommand (op_code = LE_EXTENDED_CREATE_CONNECTION) {
+packet LeExtendedCreateConnection : LeConnectionManagementCommand (op_code = LE_EXTENDED_CREATE_CONNECTION) {
_payload_, // placeholder (unimplemented)
}
// HCI Event Packets
packet InquiryComplete : EventPacket (event_code = INQUIRY_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
}
packet InquiryResult : EventPacket (event_code = INQUIRY_RESULT){
}
packet ConnectionComplete : EventPacket (event_code = CONNECTION_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
bd_addr : Address,
}
packet DisconnectionComplete : EventPacket (event_code = DISCONNECTION_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
- reason : ErrorCodes,
+ reason : ErrorCode,
}
packet AuthenticationComplete : EventPacket (event_code = AUTHENTICATION_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
}
packet RemoteNameRequestComplete : EventPacket (event_code = REMOTE_NAME_REQUEST_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
_payload_,
}
}
packet EncryptionChange : EventPacket (event_code = ENCRYPTION_CHANGE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
encryption_enabled : EncryptionEnabled,
}
packet ChangeConnectionLinkKeyComplete : EventPacket (event_code = CHANGE_CONNECTION_LINK_KEY_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
}
packet MasterLinkKeyComplete : EventPacket (event_code = MASTER_LINK_KEY_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
key_flag : KeyFlag,
}
packet ReadRemoteSupportedFeaturesComplete : EventPacket (event_code = READ_REMOTE_SUPPORTED_FEATURES_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
lmp_features : 64,
}
packet ReadRemoteVersionInformationComplete : EventPacket (event_code = READ_REMOTE_VERSION_INFORMATION_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
version : 8,
}
packet QosSetupComplete : EventPacket (event_code = QOS_SETUP_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
_reserved_ : 8,
}
packet RoleChange : EventPacket (event_code = ROLE_CHANGE){
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
new_role : Role,
}
}
packet ModeChange : EventPacket (event_code = MODE_CHANGE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
current_mode : Mode,
}
packet ReadClockOffsetComplete : EventPacket (event_code = READ_CLOCK_OFFSET_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
clock_offset : 15,
}
packet ConnectionPacketTypeChange : EventPacket (event_code = CONNECTION_PACKET_TYPE_CHANGE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
packet_type : 16,
}
packet ReadRemoteExtendedFeaturesComplete : EventPacket (event_code = READ_REMOTE_EXTENDED_FEATURES_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
page_number : 8,
}
packet SniffSubratingEvent : EventPacket (event_code = SNIFF_SUBRATING){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
maximum_transmit_latency : 16, // 0x000 - 0xFFFE (0s - 40.9s)
}
packet EncryptionKeyRefreshComplete : EventPacket (event_code = ENCRYPTION_KEY_REFRESH_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
}
}
packet SimplePairingComplete : EventPacket (event_code = SIMPLE_PAIRING_COMPLETE){
- status : ErrorCodes,
+ status : ErrorCode,
bd_addr : Address,
}
}
packet LeConnectionComplete : LeMetaEvent (subevent_code = CONNECTION_COMPLETE) {
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
role : Role,
}
packet LeConnectionUpdateComplete : LeMetaEvent (subevent_code = CONNECTION_UPDATE_COMPLETE) {
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
conn_interval : 16, // 0x006 - 0x0C80 (7.5ms - 4000ms)
}
packet LeReadRemoteFeaturesComplete : LeMetaEvent (subevent_code = READ_REMOTE_FEATURES_COMPLETE) {
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
le_features : 64,
}
packet LeLongTermKeyRequest : LeMetaEvent (subevent_code = LONG_TERM_KEY_REQUEST) {
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
random_number : 64,
}
packet ReadLocalP256PublicKeyComplete : LeMetaEvent (subevent_code = READ_LOCAL_P256_PUBLIC_KEY_COMPLETE) {
- status : ErrorCodes,
+ status : ErrorCode,
_payload_,
}
packet GenerateDhKeyComplete : LeMetaEvent (subevent_code = GENERATE_DHKEY_COMPLETE) {
- status : ErrorCodes,
+ status : ErrorCode,
_payload_,
}
packet LeEnhancedConnectionComplete : LeMetaEvent (subevent_code = ENHANCED_CONNECTION_COMPLETE) {
- status : ErrorCodes,
+ status : ErrorCode,
connection_handle : 12,
_reserved_ : 4,
role : Role,