SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
NOTE
This command fails to return any events but has a meaningful return status.
taskID– task ID of the user
taskEvent – task event of the user (must be a single bit value)
SUCCESS: event configured correctly
LL_STATUS_ERROR_BAD_PARAMETER: more than one bit is set.
Mode – HCI_EXT_SET_APP_REVISION, HCI_EXT_READ_BUILD_REVISION
userRevNum – Any 16-bit value
SUCCESS: build revision set succesfully
LL_STATUS_ERROR_BAD_PARAMETER: an invalid mode
HCI_VendorSpecifcCommandCompleteEvent
NOTE
A slave with one connection is supported (this API only works when the device is configured as a slave and connected to one master). Send this command after establishing a connection.
This command fails to return any events but has a meaningful return status.
taskID – task ID of the user
taskEvent – task event of the user
SUCCESS or FAILURE
LL_STATUS_ERROR_BAD_PARAMETER: more than one bit is set.
NOTE
This command is allowed only when the Bluetooth Low Energy controller is idle.
If you use NV when declaring it is not in use, a hung Bluetooth Low Energy connection may occur.
mode – one of…
HCI_EXT_NV_NOT_IN_USE
HCI_EXT_NV_IN_USE
HCI_VendorSpecifcCommandCompleteEvent
NOTE
Only the application should use this command. Incoming encrypted Bluetooth Low Energy data is automatically decrypted by the stack and operates free of this API.
mode – one of…
HCI_EXT_NV_NOT_IN_USE
HCI_EXT_NV_IN_USE
HCI_VendorSpecifcCommandCompleteEvent
NOTE
This delay applies only to reset and sleep. If a periodic timer is used or an active Bluetooth Low Energy operation and only sleep is used, this delay occurs only after reset.
No distinction exists between a hard and soft reset. The delay (if non-zero) is applied the same way in both cases.
delay – 0x0000…0x003E8 in milliseconds
HCI_VendorSpecifcCommandCompleteEvent
NOTE
The host issuing the command receives the HCI disconnection complete event with a reason status of 0x16 (that is, connection terminated by local host), followed by an HCI vendor specific event.
connHandle– The handle of the connection.
HCI_Disconnection_Complete
HCI_VendorSpecifcCommandCompleteEvent
NOTE
This commands resets the controller. To reenter the application, reset the device.
This command fails to return any events.
HCI_SUCCESS: Successfully entered PTM
HCI_VendorSpecifcCommandCompleteEvent
HCI_Disconnection_Complete
HCI_VendorSpecifcCommandCompleteEvent
numAllocConns – pointer to number of build time connections allowed
numActiveConns - pointer to number of active Bluetooth Low Energy connections
activeConnInfo - pointer for the connection information for each active connection which consists of the following: Connection ID, Connection Role, Peer Device Address, and Peer Address Type, which requires (the number of active connections × 9 bytes) of memory:
HCI_VendorSpecifcCommandCompleteEvent
NOTE
If there are any active Bluetooth Low Energy connections, this command is disallowed.
If the halt during RF is disabled, the HCI_EXT_ClkDivOnHaltCmd is disallowed.
mode – one of…
HCI_EXT_HALT_DURING_RF_DISABLE
HCI_EXT_HALT_DURING_RF_ENABLE
HCI_VendorSpecifcCommandCompleteEvent
NOTE
Only pins 0, 3 ,and 4 are valid for port 2 because pins 1 and 2 are mapped to debugger signals DD and DC.
A port or pin signal change occurs only when power savings is enabled.
ioPort – one of the following:
ioPin – one of the following:
HCI_VendorSpecifcCommandCompleteEvent
NOTE
When the HCI_EXT_EndModemTest is issued to stop this test, a controller reset occurs.
The device transmits at the default output power (0 dBm) unless changed by HCI_EXT_SetTxPowerCmd.
HCI_VendorSpecifcCommandCompleteEvent
NOTE
The RF channel not the Bluetooth Low Energy frequency is specified. You can obtain the RF channel from the Bluetooth Low Energy frequency as follows: RF Channel = (Bluetooth Low Energy Frequency – 2402) ÷ 2.
When the HCI_EXT_EndModemTest is issued to stop this test, the controller resets.
rxFreq- selects which channel [0 to 39] on which to receive
HCI_VendorSpecifcCommandCompleteEvent
NOTE
The purpose of this command is to minimize the overhead of sending multiple number of completed packet events. Minimizing this number of events maximizes the processing available to increase wireless throughput. This command is often used in conjunction with HCI_EXT_OverlappedProcessingCmd.
limit – From 1 to HCI_MAX_NUM_DATA_BUFFERS (returned by HCI_LE_ReadBufSizeCmd).
flushOnEvt –
HCI_VendorSpecifcCommandCompleteEvent
NOTE
Perform a power analysis of the system before determining whether this command will save power. Transferring multiple packets per connection event, may be more power efficient.
control – HCI_EXT_DISABLE_ONE_PKT_PER_EVT, HCI_EXT_ENABLE_ONE_PKT_PER_EVT
HCI_VendorSpecifcCommandCompleteEvent: this event is returned only if the setting is changing from enable to disable or disable to enable
mode – one of the following:
HCI_VendorSpecifcCommandCompleteEvent: this event is returned only if the setting is changing from enable to disable or disable to enable
NOTE
The counters are only 16 bits. At the shortest connection interval, this command allows for a little over eight minutes of data.
connId– The connection ID to perform the command
command- HCI_EXT_PER_RESET, HCI_EXT_PER_READ
HCI_VendorSpecifcCommandCompleteEvent
NOTE
You must ensure there is sufficient memory allocated in the perByChan structure. You must also maintain the counters by clearing them if required before starting accumulation.
The counters are 16 bits. At the shortest connection interval, this provides a bit over 8 minutes of data.
This command can be used combined with HCI_EXT_PacketErrorRateCmd.
connHandle – The connection ID to accumulate the data
perByChan- Pointer to PER by channel data or NULL
HCI_VendorSpecifcCommandCompleteEvent
NOTE
The reset occurs after a 100 ms delay to let the correspond event to be returned to the application.
mode – HCI_EXT_RESET_SYSTEM_HARD
HCI_VendorSpecifcCommandCompleteEvent
HCI_VendorSpecifcCommandCompleteEvent
NOTE
This command is allowed only when the controller is in the standby state. TI intends this command to be used only during initialization. Changing the BDADDR of the device after active Bluetooth Low Energy operations (i.e. Tx and Rx) have occurred may cause undefined behavior.
bdAddr – A pointer to a buffer to hold this address of the device. An invalid address (that is, all FFs) restores the address of this device to the address set at initialization.
HCI_VendorSpecifcCommandCompleteEvent
NOTE
This command is valid only for a slave controller.
When the host transmits data, the controller ensures the packet is sent over the LL connection with minimal delay even when the connection is configured to use slave latency by default. The transmit response time is no longer than the connection interval, instead of waiting for the next effective connection interval due to slave latency. The result is lower power savings because the LL may need to wake to transmit during connection events that would have been skipped due to slave latency. If saving power is more critical than fast transmit response time, you can disable this feature using this command. When disabled, the transmit response time will be no longer than the effective connection interval (slave latency + 1 × the connection interval).
control – HCI_EXT_ENABLE_FAST_TX_RESP_TIME, HCI_EXT_DISABLE_FAST_TX_RESP_TIME
HCI_VendorSpecifcCommandCompleteEvent
step – HCI_PTM_SET_FREQ_TUNE_UP, HCI_PTM_SET_FREQ_TUNE_DOWN
HCI_VendorSpecifcCommandCompleteEvent
NOTE
This command can be issued either before or after one or more connections are formed. The local features set are only effective if performed before a feature exchange procedure has been initiated by the master. When this control procedure has been completed for a connection, only the exchanged feature set for that connection will be used. Because the link layer may initiate the feature exchange procedure autonomously, TI recommends using this command before the connection is formed.
The features are initialized by the controller when starting up. You might not need this command. Refer to ll.h for a description of the local features.
localFeatures – A pointer to the feature set where each bit where each bit corresponds to a feature 0: feature shall not be used
0: Feature shall not be used
1: Feature can be used
HCI_VendorSpecifcCommandCompleteEvent
NOTE
When DTM is ended by a call to HCI_LE_TestEndCmd or a HCI_Reset is used, the transmitter output power setting is restored to the default value of 0 dBm.
txPower – one of:
HCI_VendorSpecifcCommandCompleteEvent
NOTE
When DTM is ended by a call to HCI_LE_TestEndCmd or a HCI_Reset is used, the transmitter output power setting is restored to the default value of 0 dBm.
rxGain– one of:
HCI_VendorSpecifcCommandCompleteEvent
NOTE
This command is allowed only when the device is disconnected.
The SCA value of the device remains unaffected by an HCI reset.
scaInPPM – The SCA of the device in PPM from 0 to 500.
HCI_VendorSpecifcCommandCompleteEvent
NOTE
This command applies only to devices in the slave role.
This command can help when the slave application will soon receive something that must be handled immediately. This command fails to change the slave latency connection parameter: the device wakes up for each connection event.
control – HCI_EXT_ENABLE_SL_OVERRIDE, HCI_EXT_DISABLE_SL_OVERRIDE
HCI_VendorSpecifcCommandCompleteEvent
txPower– Device's transmit power, one of the following:
HCI_VendorSpecifcCommandCompleteEvent: