mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-19 16:21:06 +00:00
clean up formatting
This commit is contained in:
parent
da43b4dd22
commit
3f1c367764
@ -35,10 +35,6 @@
|
||||
* Created by Matthias Ringwald on 7/23/09.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @format
|
||||
*/
|
||||
|
||||
#ifndef __HCI_CMDS_H
|
||||
#define __HCI_CMDS_H
|
||||
|
||||
|
@ -587,14 +587,14 @@ OPCODE(OGF_LE_CONTROLLER, 0x1d), "1"
|
||||
// return: status
|
||||
};
|
||||
const hci_cmd_t hci_le_transmitter_test = {
|
||||
OPCODE(OGF_LE_CONTROLLER, 0x1e), "111"
|
||||
OPCODE(OGF_LE_CONTROLLER, 0x1e), "111"
|
||||
// param: tx frequency, [0x00 0x27], frequency (MHz): 2420 + N*2
|
||||
// param: lengh of test payload [0x00,0x25]
|
||||
// param: packet payload [0,7] different patterns
|
||||
// return: status
|
||||
};
|
||||
const hci_cmd_t hci_le_test_end = {
|
||||
OPCODE(OGF_LE_CONTROLLER, 0x1f), "1"
|
||||
OPCODE(OGF_LE_CONTROLLER, 0x1f), "1"
|
||||
// params: none
|
||||
// return: status, number of packets (8)
|
||||
};
|
||||
@ -690,64 +690,64 @@ OPCODE(OGF_BTSTACK, SDP_CLIENT_QUERY_SERVICES), "BSS"
|
||||
|
||||
// create rfcomm channel: @param bd_addr(48), channel (8)
|
||||
const hci_cmd_t rfcomm_create_channel = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_CREATE_CHANNEL), "B1"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_CREATE_CHANNEL), "B1"
|
||||
};
|
||||
// create rfcomm channel: @param bd_addr(48), channel (8), mtu (16), credits (8)
|
||||
const hci_cmd_t rfcomm_create_channel_with_initial_credits = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_CREATE_CHANNEL_WITH_CREDITS), "B121"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_CREATE_CHANNEL_WITH_CREDITS), "B121"
|
||||
};
|
||||
// grant credits: @param rfcomm_cid(16), credits (8)
|
||||
const hci_cmd_t rfcomm_grants_credits= {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_GRANT_CREDITS), "21"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_GRANT_CREDITS), "21"
|
||||
};
|
||||
// disconnect rfcomm disconnect, @param rfcomm_cid(16), reason(8)
|
||||
const hci_cmd_t rfcomm_disconnect = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_DISCONNECT), "21"
|
||||
const hci_cmd_t rfcomm_disconnect = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_DISCONNECT), "21"
|
||||
};
|
||||
|
||||
// register rfcomm service: @param channel(8), mtu (16)
|
||||
const hci_cmd_t rfcomm_register_service = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_REGISTER_SERVICE), "12"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_REGISTER_SERVICE), "12"
|
||||
};
|
||||
// register rfcomm service: @param channel(8), mtu (16), initial credits (8)
|
||||
const hci_cmd_t rfcomm_register_service_with_initial_credits = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_REGISTER_SERVICE_WITH_CREDITS), "121"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_REGISTER_SERVICE_WITH_CREDITS), "121"
|
||||
};
|
||||
|
||||
// unregister rfcomm service, @param service_channel(16)
|
||||
const hci_cmd_t rfcomm_unregister_service = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_UNREGISTER_SERVICE), "2"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_UNREGISTER_SERVICE), "2"
|
||||
};
|
||||
// accept connection @param source cid (16)
|
||||
const hci_cmd_t rfcomm_accept_connection = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_ACCEPT_CONNECTION), "2"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_ACCEPT_CONNECTION), "2"
|
||||
};
|
||||
// decline connection @param source cid (16)
|
||||
const hci_cmd_t rfcomm_decline_connection = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_DECLINE_CONNECTION), "21"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_DECLINE_CONNECTION), "21"
|
||||
};
|
||||
// request persistent rfcomm channel number for named service
|
||||
const hci_cmd_t rfcomm_persistent_channel_for_service = {
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_PERSISTENT_CHANNEL), "N"
|
||||
OPCODE(OGF_BTSTACK, RFCOMM_PERSISTENT_CHANNEL), "N"
|
||||
};
|
||||
|
||||
/**
|
||||
* @param handle
|
||||
*/
|
||||
const hci_cmd_t gap_disconnect_cmd = {
|
||||
OPCODE(OGF_BTSTACK, GAP_DISCONNECT), "H"
|
||||
OPCODE(OGF_BTSTACK, GAP_DISCONNECT), "H"
|
||||
};
|
||||
|
||||
/**
|
||||
*/
|
||||
const hci_cmd_t gap_le_scan_start = {
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_SCAN_START), ""
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_SCAN_START), ""
|
||||
};
|
||||
|
||||
/**
|
||||
*/
|
||||
const hci_cmd_t gap_le_scan_stop = {
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_SCAN_STOP), ""
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_SCAN_STOP), ""
|
||||
};
|
||||
|
||||
/**
|
||||
@ -755,28 +755,28 @@ const hci_cmd_t gap_le_scan_stop = {
|
||||
* @param peer_address
|
||||
*/
|
||||
const hci_cmd_t gap_le_connect_cmd = {
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "1B"
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "1B"
|
||||
};
|
||||
|
||||
/**
|
||||
* @param handle
|
||||
*/
|
||||
const hci_cmd_t gatt_client_start_cmd = {
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "H"
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "H"
|
||||
};
|
||||
|
||||
/**
|
||||
* @param handle
|
||||
*/
|
||||
const hci_cmd_t gatt_client_stop_cmd = {
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "H"
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "H"
|
||||
};
|
||||
|
||||
/**
|
||||
* @param handle
|
||||
*/
|
||||
const hci_cmd_t gatt_discover_primary_services_cmd = {
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "H"
|
||||
OPCODE(OGF_BTSTACK, GAP_LE_CONNECT), "H"
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user