TI BLE5-Stack API Documentation  2.02.07.00
hci.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  Group: WCS, BTS
4  $Target Device: DEVICES $
5 
6  ******************************************************************************
7  $License: TI_TEXT 2009 $
8  ******************************************************************************
9  $Release Name: PACKAGE NAME $
10  $Release Date: PACKAGE RELEASE DATE $
11  *****************************************************************************/
12 
317 #ifndef HCI_H
318 #define HCI_H
319 
320 #ifdef __cplusplus
321 extern "C"
322 {
323 #endif
324 
325 /*
326  * INCLUDES
327  */
328 #include "bcomdef.h"
329 #include "osal.h"
330 #include "ll_common.h"
331 #include "ll_ae.h"
332 #include "hal_assert.h"
333 
334 /*
335  * MACROS
336  */
337 
338 /*
339  * CONSTANTS
340  */
341 
352 #define HCI_SUCCESS 0x00
353 #define HCI_ERROR_CODE_UNKNOWN_HCI_CMD 0x01
354 #define HCI_ERROR_CODE_UNKNOWN_CONN_ID 0x02
355 #define HCI_ERROR_CODE_HW_FAILURE 0x03
356 #define HCI_ERROR_CODE_PAGE_TIMEOUT 0x04
357 #define HCI_ERROR_CODE_AUTH_FAILURE 0x05
358 #define HCI_ERROR_CODE_PIN_KEY_MISSING 0x06
359 #define HCI_ERROR_CODE_MEM_CAP_EXCEEDED 0x07
360 #define HCI_ERROR_CODE_CONN_TIMEOUT 0x08
361 #define HCI_ERROR_CODE_CONN_LIMIT_EXCEEDED 0x09
362 #define HCI_ERROR_CODE_SYNCH_CONN_LIMIT_EXCEEDED 0x0A
363 #define HCI_ERROR_CODE_ACL_CONN_ALREADY_EXISTS 0x0B
364 #define HCI_ERROR_CODE_CMD_DISALLOWED 0x0C
365 #define HCI_ERROR_CODE_CONN_REJ_LIMITED_RESOURCES 0x0D
366 #define HCI_ERROR_CODE_CONN_REJECTED_SECURITY_REASONS 0x0E
367 #define HCI_ERROR_CODE_CONN_REJECTED_UNACCEPTABLE_BDADDR 0x0F
368 #define HCI_ERROR_CODE_CONN_ACCEPT_TIMEOUT_EXCEEDED 0x10
369 #define HCI_ERROR_CODE_UNSUPPORTED_FEATURE_PARAM_VALUE 0x11
370 #define HCI_ERROR_CODE_INVALID_HCI_CMD_PARAMS 0x12
371 #define HCI_ERROR_CODE_REMOTE_USER_TERM_CONN 0x13
372 #define HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_LOW_RESOURCES 0x14
373 #define HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_POWER_OFF 0x15
374 #define HCI_ERROR_CODE_CONN_TERM_BY_LOCAL_HOST 0x16
375 #define HCI_ERROR_CODE_REPEATED_ATTEMPTS 0x17
376 #define HCI_ERROR_CODE_PAIRING_NOT_ALLOWED 0x18
377 #define HCI_ERROR_CODE_UNKNOWN_LMP_PDU 0x19
378 #define HCI_ERROR_CODE_UNSUPPORTED_REMOTE_FEATURE 0x1A
379 #define HCI_ERROR_CODE_SCO_OFFSET_REJ 0x1B
380 #define HCI_ERROR_CODE_SCO_INTERVAL_REJ 0x1C
381 #define HCI_ERROR_CODE_SCO_AIR_MODE_REJ 0x1D
382 #define HCI_ERROR_CODE_INVALID_LMP_PARAMS 0x1E
383 #define HCI_ERROR_CODE_UNSPECIFIED_ERROR 0x1F
384 #define HCI_ERROR_CODE_UNSUPPORTED_LMP_PARAM_VAL 0x20
385 #define HCI_ERROR_CODE_ROLE_CHANGE_NOT_ALLOWED 0x21
386 #define HCI_ERROR_CODE_LMP_LL_RESP_TIMEOUT 0x22
387 #define HCI_ERROR_CODE_LMP_ERR_TRANSACTION_COLLISION 0x23
388 #define HCI_ERROR_CODE_LMP_PDU_NOT_ALLOWED 0x24
389 #define HCI_ERROR_CODE_ENCRYPT_MODE_NOT_ACCEPTABLE 0x25
390 #define HCI_ERROR_CODE_LINK_KEY_CAN_NOT_BE_CHANGED 0x26
391 #define HCI_ERROR_CODE_REQ_QOS_NOT_SUPPORTED 0x27
392 #define HCI_ERROR_CODE_INSTANT_PASSED 0x28
393 #define HCI_ERROR_CODE_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED 0x29
394 #define HCI_ERROR_CODE_DIFFERENT_TRANSACTION_COLLISION 0x2A
395 #define HCI_ERROR_CODE_RESERVED1 0x2B
396 #define HCI_ERROR_CODE_QOS_UNACCEPTABLE_PARAM 0x2C
397 #define HCI_ERROR_CODE_QOS_REJ 0x2D
398 #define HCI_ERROR_CODE_CHAN_ASSESSMENT_NOT_SUPPORTED 0x2E
399 #define HCI_ERROR_CODE_INSUFFICIENT_SECURITY 0x2F
400 #define HCI_ERROR_CODE_PARAM_OUT_OF_MANDATORY_RANGE 0x30
401 #define HCI_ERROR_CODE_RESERVED2 0x31
402 #define HCI_ERROR_CODE_ROLE_SWITCH_PENDING 0x32
403 #define HCI_ERROR_CODE_RESERVED3 0x33
404 #define HCI_ERROR_CODE_RESERVED_SLOT_VIOLATION 0x34
405 #define HCI_ERROR_CODE_ROLE_SWITCH_FAILED 0x35
406 #define HCI_ERROR_CODE_EXTENDED_INQUIRY_RESP_TOO_LARGE 0x36
407 #define HCI_ERROR_CODE_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST 0x37
408 #define HCI_ERROR_CODE_HOST_BUSY_PAIRING 0x38
409 #define HCI_ERROR_CODE_CONN_REJ_NO_SUITABLE_CHAN_FOUND 0x39
410 #define HCI_ERROR_CODE_CONTROLLER_BUSY 0x3A
411 #define HCI_ERROR_CODE_UNACCEPTABLE_CONN_PARAMETERS 0x3B
412 #define HCI_ERROR_CODE_DIRECTED_ADV_TIMEOUT 0x3C
413 #define HCI_ERROR_CODE_CONN_TERM_MIC_FAILURE 0x3D
414 #define HCI_ERROR_CODE_CONN_FAILED_TO_ESTABLISH 0x3E
415 #define HCI_ERROR_CODE_MAC_CONN_FAILED 0x3F
416 #define HCI_ERROR_CODE_COARSE_CLOCK_ADJUST_REJECTED 0x40
417 #define HCI_ERROR_CODE_TYPE0_SUBMAP_NOT_DEFINED 0x41
418 #define HCI_ERROR_CODE_UNKNOWN_ADVERTISING_IDENTIFIER 0x42
419 #define HCI_ERROR_CODE_LIMIT_REACHED 0x43
420 #define HCI_ERROR_CODE_OPERATION_CANCELLED_BY_HOST 0x44
421 
427 #define HCI_MAX_NUM_CMD_BUFFERS LL_MAX_NUM_CMD_BUFFERS
428 #if defined(CC2540) || defined(CC2541) || defined(CC2541S)
429 #define HCI_MAX_NUM_DATA_BUFFERS LL_MAX_NUM_DATA_BUFFERS //<! Max Num Data Buffers
430 #endif // CC2540 | CC2541 | CC2541S
431 
435 // Send Data Packet Boundary Flags
436 #define FIRST_PKT_HOST_TO_CTRL LL_DATA_FIRST_PKT_HOST_TO_CTRL
437 #define CONTINUING_PKT LL_DATA_CONTINUATION_PKT
438 #define FIRST_PKT_CTRL_TO_HOST LL_DATA_FIRST_PKT_CTRL_TO_HOST
439 
440 
442 #define HCI_RSSI_NOT_AVAILABLE LL_RSSI_NOT_AVAILABLE
443 
448 #define HCI_DISCONNECT_AUTH_FAILURE HCI_ERROR_CODE_AUTH_FAILURE
449 #define HCI_DISCONNECT_REMOTE_USER_TERM HCI_ERROR_CODE_REMOTE_USER_TERM_CONN
450 #define HCI_DISCONNECT_REMOTE_DEV_LOW_RESOURCES HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_LOW_RESOURCES
451 #define HCI_DISCONNECT_REMOTE_DEV_POWER_OFF HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_POWER_OFF
452 #define HCI_DISCONNECT_UNSUPPORTED_REMOTE_FEATURE HCI_ERROR_CODE_UNSUPPORTED_REMOTE_FEATURE
453 #define HCI_DISCONNECT_KEY_PAIRING_NOT_SUPPORTED HCI_ERROR_CODE_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED
454 #define HCI_DISCONNECT_UNACCEPTABLE_CONN_INTERVAL HCI_ERROR_CODE_UNACCEPTABLE_CONN_INTERVAL
455 
461 // Tx Power Types
462 #define HCI_READ_CURRENT_TX_POWER_LEVEL LL_READ_CURRENT_TX_POWER_LEVEL
463 #define HCI_READ_MAX_TX_POWER_LEVEL LL_READ_MAX_TX_POWER_LEVEL
464 
470 #define HCI_CTRL_TO_HOST_FLOW_CTRL_OFF 0
471 #define HCI_CTRL_TO_HOST_FLOW_CTRL_ACL_ON_SYNCH_OFF 1
472 #define HCI_CTRL_TO_HOST_FLOW_CTRL_ACL_OFF_SYNCH_ON 2
473 #define HCI_CTRL_TO_HOST_FLOW_CTRL_ACL_ON_SYNCH_ON 3
474 
480 #define HCI_PUBLIC_DEVICE_ADDRESS LL_DEV_ADDR_TYPE_PUBLIC
481 #define HCI_RANDOM_DEVICE_ADDRESS LL_DEV_ADDR_TYPE_RANDOM
482 
488 #define HCI_CONNECTABLE_UNDIRECTED_ADV LL_ADV_CONNECTABLE_UNDIRECTED_EVT
489 #define HCI_CONNECTABLE_DIRECTED_HDC_ADV LL_ADV_CONNECTABLE_DIRECTED_HDC_EVT
490 #define HCI_SCANNABLE_UNDIRECTED LL_ADV_SCANNABLE_UNDIRECTED_EVT
491 #define HCI_NONCONNECTABLE_UNDIRECTED_ADV LL_ADV_NONCONNECTABLE_UNDIRECTED_EVT
492 #define HCI_CONNECTABLE_DIRECTED_LDC_ADV LL_ADV_CONNECTABLE_DIRECTED_LDC_EVT
493 
499 #define HCI_ADV_CHAN_37 LL_ADV_CHAN_37
500 #define HCI_ADV_CHAN_38 LL_ADV_CHAN_38
501 #define HCI_ADV_CHAN_39 LL_ADV_CHAN_39
502 #define HCI_ADV_CHAN_ALL (LL_ADV_CHAN_37 | LL_ADV_CHAN_38 | LL_ADV_CHAN_39)
503 
509 #define HCI_ADV_WL_POLICY_ANY_REQ LL_ADV_WL_POLICY_ANY_REQ
510 #define HCI_ADV_WL_POLICY_WL_SCAN_REQ LL_ADV_WL_POLICY_WL_SCAN_REQ
511 #define HCI_ADV_WL_POLICY_WL_CONNECT_IND LL_ADV_WL_POLICY_WL_CONNECT_IND
512 #define HCI_ADV_WL_POLICY_WL_ALL_REQ LL_ADV_WL_POLICY_WL_ALL_REQ
513 
519 #define HCI_ENABLE_ADV LL_ADV_MODE_ON
520 #define HCI_DISABLE_ADV LL_ADV_MODE_OFF
521 
527 #define HCI_SCAN_PASSIVE LL_SCAN_PASSIVE
528 #define HCI_SCAN_ACTIVE LL_SCAN_ACTIVE
529 
535 // Scan White List Policy
536 #define HCI_SCAN_WL_POLICY_ANY_ADV_PKTS LL_SCAN_WL_POLICY_ANY_ADV_PKTS
537 #define HCI_SCAN_WL_POLICY_USE_WHITE_LIST LL_SCAN_WL_POLICY_USE_WHITE_LIST
538 
544 // Scan Filtering
545 #define HCI_FILTER_REPORTS_DISABLE LL_FILTER_REPORTS_DISABLE
546 #define HCI_FILTER_REPORTS_ENABLE LL_FILTER_REPORTS_ENABLE
547 
553 // Scan Commands
554 #define HCI_SCAN_STOP LL_SCAN_STOP
555 #define HCI_SCAN_START LL_SCAN_START
556 
562 #define HCI_INIT_WL_POLICY_USE_PEER_ADDR LL_INIT_WL_POLICY_USE_PEER_ADDR
563 #define HCI_INIT_WL_POLICY_USE_WHITE_LIST LL_INIT_WL_POLICY_USE_WHITE_LIST
564 
570 #define HCI_ENCRYPTION_OFF LL_ENCRYPTION_OFF
571 #define HCI_ENCRYPTION_ON LL_ENCRYPTION_ON
572 
578 #define HCI_DIRECT_TEST_PAYLOAD_PRBS9 LL_DIRECT_TEST_PAYLOAD_PRBS9
579 #define HCI_DIRECT_TEST_PAYLOAD_0x0F LL_DIRECT_TEST_PAYLOAD_0x0F
580 #define HCI_DIRECT_TEST_PAYLOAD_0x55 LL_DIRECT_TEST_PAYLOAD_0x55
581 #define HCI_DIRECT_TEST_PAYLOAD_PRBS15 LL_DIRECT_TEST_PAYLOAD_PRBS15
582 #define HCI_DIRECT_TEST_PAYLOAD_0xFF LL_DIRECT_TEST_PAYLOAD_0xFF
583 #define HCI_DIRECT_TEST_PAYLOAD_0x00 LL_DIRECT_TEST_PAYLOAD_0x00
584 #define HCI_DIRECT_TEST_PAYLOAD_0xF0 LL_DIRECT_TEST_PAYLOAD_0xF0
585 #define HCI_DIRECT_TEST_PAYLOAD_0xAA LL_DIRECT_TEST_PAYLOAD_0xAA
586 
592 #define HCI_DTM_STANDARD_MODULATION_INDEX LL_DTM_STANDARD_MODULATION_INDEX
593 #define HCI_DTM_STABLE_MODULATION_INDEX LL_DTM_STABLE_MODULATION_INDEX
594 
600 #define HCI_EXT_DTM_TX_CONTINUOUS LL_EXT_DTM_TX_CONTINUOUS
601 
607 #define HCI_DISABLE_ADDR_RESOLUTION LL_DISABLE_ADDR_RESOLUTION
608 #define HCI_ENABLE_ADDR_RESOLUTION LL_ENABLE_ADDR_RESOLUTION
609 #define HCI_NETWORK_PRIVACY_MODE LL_NETWORK_PRIVACY_MODE
610 #define HCI_DEVICE_PRIVACY_MODE LL_DEVICE_PRIVACY_MODE
611 
617 #define HCI_PHY_USE_PHY_PARAM LL_PHY_USE_PHY_PARAM
618 #define HCI_PHY_USE_ANY_PHY LL_PHY_USE_ANY_PHY
619 #define HCI_PHY_1_MBPS LL_PHY_1_MBPS
620 #define HCI_PHY_2_MBPS LL_PHY_2_MBPS
621 #define HCI_PHY_CODED LL_PHY_CODED
622 
628 #define PHY_UPDATE_COMPLETE_EVENT_1M 1
629 #define PHY_UPDATE_COMPLETE_EVENT_2M 2
630 #define PHY_UPDATE_COMPLETE_EVENT_CODED 3
631 
637 #define HCI_EXT_RX_GAIN_STD LL_EXT_RX_GAIN_STD
638 #define HCI_EXT_RX_GAIN_HIGH LL_EXT_RX_GAIN_HIGH
639 
645 #if defined( CC26XX ) || defined( CC13XX )
646 #define HCI_EXT_TX_POWER_MINUS_20_DBM LL_EXT_TX_POWER_MINUS_20_DBM
647 #define HCI_EXT_TX_POWER_MINUS_18_DBM LL_EXT_TX_POWER_MINUS_18_DBM
648 #define HCI_EXT_TX_POWER_MINUS_15_DBM LL_EXT_TX_POWER_MINUS_15_DBM
649 #define HCI_EXT_TX_POWER_MINUS_12_DBM LL_EXT_TX_POWER_MINUS_12_DBM
650 #define HCI_EXT_TX_POWER_MINUS_10_DBM LL_EXT_TX_POWER_MINUS_10_DBM
651 #define HCI_EXT_TX_POWER_MINUS_9_DBM LL_EXT_TX_POWER_MINUS_9_DBM
652 #define HCI_EXT_TX_POWER_MINUS_6_DBM LL_EXT_TX_POWER_MINUS_6_DBM
653 #define HCI_EXT_TX_POWER_MINUS_5_DBM LL_EXT_TX_POWER_MINUS_5_DBM
654 #define HCI_EXT_TX_POWER_MINUS_3_DBM LL_EXT_TX_POWER_MINUS_3_DBM
655 #define HCI_EXT_TX_POWER_0_DBM LL_EXT_TX_POWER_0_DBM
656 #define HCI_EXT_TX_POWER_1_DBM LL_EXT_TX_POWER_1_DBM
657 #define HCI_EXT_TX_POWER_2_DBM LL_EXT_TX_POWER_2_DBM
658 #define HCI_EXT_TX_POWER_3_DBM LL_EXT_TX_POWER_3_DBM
659 #define HCI_EXT_TX_POWER_4_DBM LL_EXT_TX_POWER_4_DBM
660 #define HCI_EXT_TX_POWER_5_DBM LL_EXT_TX_POWER_5_DBM
661 #if defined( CC13X2P )
662 #define HCI_EXT_TX_POWER_P2_14_DBM_P4_6_DBM LL_EXT_TX_POWER_P2_14_DBM_P4_6_DBM
663 #define HCI_EXT_TX_POWER_P2_15_DBM_P4_7_DBM LL_EXT_TX_POWER_P2_15_DBM_P4_7_DBM
664 #define HCI_EXT_TX_POWER_P2_16_DBM_P4_8_DBM LL_EXT_TX_POWER_P2_16_DBM_P4_8_DBM
665 #define HCI_EXT_TX_POWER_P2_17_DBM_P4_9_DBM LL_EXT_TX_POWER_P2_17_DBM_P4_9_DBM
666 #define HCI_EXT_TX_POWER_P2_18_DBM_P4_10_DBM LL_EXT_TX_POWER_P2_18_DBM_P4_10_DBM
667 #define HCI_EXT_TX_POWER_P2_19_DBM LL_EXT_TX_POWER_P2_19_DBM
668 #define HCI_EXT_TX_POWER_P2_20_DBM LL_EXT_TX_POWER_P2_20_DBM
669 #endif // CC13X2P
670 #else // CC254x
671 #define HCI_EXT_TX_POWER_MINUS_23_DBM LL_EXT_TX_POWER_MINUS_23_DBM
672 #define HCI_EXT_TX_POWER_MINUS_6_DBM LL_EXT_TX_POWER_MINUS_6_DBM
673 #define HCI_EXT_TX_POWER_0_DBM LL_EXT_TX_POWER_0_DBM
674 #define HCI_EXT_TX_POWER_4_DBM LL_EXT_TX_POWER_4_DBM
675 #endif // CC26XX/CC13XX
676 
682 #define HCI_EXT_ENABLE_ONE_PKT_PER_EVT LL_EXT_ENABLE_ONE_PKT_PER_EVT
683 #define HCI_EXT_DISABLE_ONE_PKT_PER_EVT LL_EXT_DISABLE_ONE_PKT_PER_EVT
684 
686 
688 
692 #define HCI_EXT_ENABLE_CLK_DIVIDE_ON_HALT LL_EXT_ENABLE_CLK_DIVIDE_ON_HALT
693 #define HCI_EXT_DISABLE_CLK_DIVIDE_ON_HALT LL_EXT_DISABLE_CLK_DIVIDE_ON_HALT
694 
696 
698 
702 #define HCI_EXT_NV_IN_USE LL_EXT_NV_IN_USE
703 #define HCI_EXT_NV_NOT_IN_USE LL_EXT_NV_NOT_IN_USE
704 
710 #define HCI_EXT_ENABLE_FAST_TX_RESP_TIME LL_EXT_ENABLE_FAST_TX_RESP_TIME
711 #define HCI_EXT_DISABLE_FAST_TX_RESP_TIME LL_EXT_DISABLE_FAST_TX_RESP_TIME
712 
718 #define HCI_EXT_ENABLE_SL_OVERRIDE LL_EXT_ENABLE_SL_OVERRIDE
719 #define HCI_EXT_DISABLE_SL_OVERRIDE LL_EXT_DISABLE_SL_OVERRIDE
720 
726 #define HCI_EXT_TX_MODULATED_CARRIER LL_EXT_TX_MODULATED_CARRIER
727 #define HCI_EXT_TX_UNMODULATED_CARRIER LL_EXT_TX_UNMODULATED_CARRIER
728 
734 #define HCI_PTM_SET_FREQ_TUNE_DOWN LL_EXT_SET_FREQ_TUNE_DOWN
735 #define HCI_PTM_SET_FREQ_TUNE_UP LL_EXT_SET_FREQ_TUNE_UP
736 
738 
740 
744 #define HCI_EXT_PM_IO_PORT_P0 LL_EXT_PM_IO_PORT_P0
745 #define HCI_EXT_PM_IO_PORT_P1 LL_EXT_PM_IO_PORT_P1
746 #define HCI_EXT_PM_IO_PORT_P2 LL_EXT_PM_IO_PORT_P2
747 #define HCI_EXT_PM_IO_PORT_NONE LL_EXT_PM_IO_PORT_NONE
748 
749 #define HCI_EXT_PM_IO_PORT_PIN0 LL_EXT_PM_IO_PORT_PIN0
750 #define HCI_EXT_PM_IO_PORT_PIN1 LL_EXT_PM_IO_PORT_PIN1
751 #define HCI_EXT_PM_IO_PORT_PIN2 LL_EXT_PM_IO_PORT_PIN2
752 #define HCI_EXT_PM_IO_PORT_PIN3 LL_EXT_PM_IO_PORT_PIN3
753 #define HCI_EXT_PM_IO_PORT_PIN4 LL_EXT_PM_IO_PORT_PIN4
754 #define HCI_EXT_PM_IO_PORT_PIN5 LL_EXT_PM_IO_PORT_PIN5
755 #define HCI_EXT_PM_IO_PORT_PIN6 LL_EXT_PM_IO_PORT_PIN6
756 #define HCI_EXT_PM_IO_PORT_PIN7 LL_EXT_PM_IO_PORT_PIN7
757 
759 
765 #define HCI_EXT_PER_RESET LL_EXT_PER_RESET
766 #define HCI_EXT_PER_READ LL_EXT_PER_READ
767 
769 
771 
775 #define HCI_EXT_HALT_DURING_RF_DISABLE LL_EXT_HALT_DURING_RF_DISABLE
776 #define HCI_EXT_HALT_DURING_RF_ENABLE LL_EXT_HALT_DURING_RF_ENABLE
777 
779 
781 
785 #define HCI_EXT_SET_USER_REVISION LL_EXT_SET_USER_REVISION
786 #define HCI_EXT_READ_BUILD_REVISION LL_EXT_READ_BUILD_REVISION
787 
793 #define HCI_EXT_RESET_SYSTEM_HARD LL_EXT_RESET_SYSTEM_HARD
794 #define HCI_EXT_RESET_SYSTEM_SOFT LL_EXT_RESET_SYSTEM_SOFT
795 
797 
799 
803 #define HCI_EXT_DISABLE_OVERLAPPED_PROCESSING LL_EXT_DISABLE_OVERLAPPED_PROCESSING
804 #define HCI_EXT_ENABLE_OVERLAPPED_PROCESSING LL_EXT_ENABLE_OVERLAPPED_PROCESSING
805 
807 
809 
813 #define HCI_EXT_DISABLE_NUM_COMPL_PKTS_ON_EVENT LL_EXT_DISABLE_NUM_COMPL_PKTS_ON_EVENT
814 #define HCI_EXT_ENABLE_NUM_COMPL_PKTS_ON_EVENT LL_EXT_ENABLE_NUM_COMPL_PKTS_ON_EVENT
815 
821 #define HCI_EXT_DISABLE_SCAN_REQUEST_REPORT LL_EXT_DISABLE_SCAN_REQUEST_REPORT
822 #define HCI_EXT_ENABLE_SCAN_REQUEST_REPORT LL_EXT_ENABLE_SCAN_REQUEST_REPORT
823 
833 #define HCI_LINK_TYPE_SCO_BUFFER_OVERFLOW 0
834 #define HCI_LINK_TYPE_ACL_BUFFER_OVERFLOW 1
835 
843 #define HCI_EXT_RF_SETUP_1M_PHY LL_EXT_RF_SETUP_1M_PHY
844 #define HCI_EXT_RF_SETUP_2M_PHY LL_EXT_RF_SETUP_2M_PHY
845 #define HCI_EXT_RF_SETUP_CODED_S8_PHY LL_EXT_RF_SETUP_CODED_S8_PHY
846 #define HCI_EXT_RF_SETUP_CODED_S2_PHY LL_EXT_RF_SETUP_CODED_S2_PHY
847 
851 /*
852  * TYPEDEFS
853  */
854 
856 typedef uint8 hciStatus_t;
858 
864 typedef struct
866 {
868  uint8 BLEEventCode;
869  uint8 status;
871  uint8 role;
872  uint8 peerAddrType;
873  uint8 peerAddr[B_ADDR_LEN];
874  uint16 connInterval;
875  uint16 connLatency;
876  uint16 connTimeout;
879 
881 typedef struct
882 {
884  uint8 BLEEventCode;
885  uint8 status;
887  uint8 role;
888  uint8 peerAddrType;
889  uint8 peerAddr[B_ADDR_LEN];
890  uint16 connInterval;
891  uint16 connLatency;
892  uint16 connTimeout;
894  // Note: These fields normally follow peerAddr. Put here for Host optimization.
895  uint8 localRPA[B_ADDR_LEN];
896  uint8 peerRPA[B_ADDR_LEN];
898 
901 {
905 
907 typedef struct
908 {
909  uint8 eventType;
910  uint8 addrType;
911  uint8 addr[B_ADDR_LEN];
912  uint8 dataLen;
913  uint8 rspData[B_MAX_ADV_LEN];
914  int8 rssi;
916 
918 typedef struct
919 {
921  uint8 BLEEventCode;
922  uint8 numDevices;
925 
927 typedef struct
928 {
930  uint8 BLEEventCode;
931  uint8 eventType;
932  uint8 peerAddrType;
933  uint8 peerAddr[B_ADDR_LEN];
934  uint8 bleChan;
935  int8 rssi;
937 
939 typedef struct
940 {
942  uint8 BLEEventCode;
943  uint16 connHandle;
944  uint8 nextDataChan;
945  uint8 newChanMap[LL_NUM_BYTES_FOR_CHAN_MAP];
947 
949 typedef struct
950 {
952  uint8 BLEEventCode;
953  uint8 status;
955  uint16 connInterval;
956  uint16 connLatency;
957  uint16 connTimeout;
959 
961 typedef struct
962 {
964  uint8 BLEEventCode;
965  uint8 status;
967  uint8 features[8];
969 
971 typedef struct
972 {
974  uint8 BLEEventCode;
975  uint16 connHandle;
976  uint8 reason;
977  uint8 encEnable;
979 
981 typedef struct
982 {
984  uint8 BLEEventCode;
985  uint16 connHandle;
986  uint8 random[B_RANDOM_NUM_SIZE];
989 
991 typedef struct
992 {
994  uint8 numHandles;
998 
1000 typedef struct
1001 {
1004  uint16 cmdOpcode;
1005  uint8 *pReturnParam;
1007 
1009 typedef struct
1010 {
1012  uint8 length;
1013  uint16 cmdOpcode;
1014  uint8 *pEventParam;
1016 
1018 typedef struct
1019 {
1021  uint8 cmdStatus;
1023  uint16 cmdOpcode;
1025 
1027 typedef struct
1028 {
1032 
1034 typedef struct
1035 {
1037  uint8 status;
1038  uint16 connHandle;
1039  uint8 reason;
1041 
1043 typedef struct
1044 {
1046  uint8 linkType;
1048 
1050 typedef struct
1051 {
1053  uint16 connHandle;
1055 
1057 typedef struct
1058 {
1060  uint16 connHandle;
1061  uint16 cid;
1063 
1065 typedef struct
1066 {
1069  uint8 status;
1070  uint16 connHandle;
1071  uint16 Interval_Min;
1072  uint16 Interval_Max;
1073  uint16 Latency;
1074  uint16 Timeout;
1076 
1078 typedef struct
1079 {
1082  uint8 status;
1083  uint16 connHandle;
1084  uint8 txPhy;
1085  uint8 rxPhy;
1087 
1089 typedef struct
1090 {
1093  uint16 connHandle;
1094  uint16 maxTxOctets;
1095  uint16 maxTxTime;
1096  uint16 maxRxOctets;
1097  uint16 maxRxTime;
1099 
1101 typedef struct
1102 {
1105  uint8 status;
1106  uint8 p256Key[LL_SC_P256_KEY_LEN];
1108 
1110 typedef struct
1111 {
1114  uint8 status;
1115  uint8 dhKey[LL_SC_DHKEY_LEN];
1117 
1119 typedef struct
1120 {
1123  uint16 connHandle;
1124  uint8 phy;
1125  uint8 dataChIndex;
1126  uint16 rssi;
1127  uint8 rssiAntenna;
1128  uint8 cteType;
1130  uint8 status;
1131  uint16 connEvent;
1132  uint8 sampleCount;
1133  int8 *iqSamples;
1135 
1137 typedef struct
1138 {
1141  uint8 status;
1142  uint16 connHandle;
1144 
1146 typedef struct
1147 {
1150  uint16 totalDataLen;
1151  uint8 eventIndex;
1152  uint16 connHandle;
1153  uint8 phy;
1154  uint8 dataChIndex;
1155  uint16 rssi;
1156  uint8 rssiAntenna;
1157  uint8 cteType;
1159  uint8 status;
1160  uint16 connEvent;
1161  uint8 dataLen;
1162  uint8 sampleRate;
1163  uint8 sampleSize;
1164  uint8 sampleCtrl;
1165  void *iqSamples;
1167 
1169 typedef struct
1170 {
1173  uint16 syncHandle;
1175  uint16 rssi;
1176  uint8 rssiAntenna;
1177  uint8 cteType;
1179  uint8 status;
1180  uint16 eventCounter;
1181  uint8 sampleCount;
1182  int8 *iqSamples;
1184 
1186 typedef struct
1187 {
1190  uint16 totalDataLen;
1191  uint8 eventIndex;
1192  uint16 syncHandle;
1194  uint16 rssi;
1195  uint8 rssiAntenna;
1196  uint8 cteType;
1198  uint8 status;
1199  uint16 eventCounter;
1200  uint8 dataLen;
1201  uint8 sampleRate;
1202  uint8 sampleSize;
1203  uint8 sampleCtrl;
1204  void *iqSamples;
1206 
1208 typedef struct
1209 {
1212  uint8 status;
1213  uint16 syncHandle;
1214  uint8 sid;
1215  uint8 addrType;
1216  uint8 address[B_ADDR_LEN];
1217  uint8 phy;
1221 
1223 typedef struct
1224 {
1227  uint16 syncHandle;
1228  int8 txPower;
1229  int8 rssi;
1230  uint8 cteType;
1231  uint8 dataStatus;
1232  uint8 dataLen;
1233  uint8 *data;
1235 
1237 typedef struct
1238 {
1241  uint16 syncHandle;
1243 
1244 
1246 typedef struct
1247 {
1248  uint8 status;
1249  uint16 dataPktLen;
1250  uint8 numDataPkts;
1252 
1254 typedef struct
1255 {
1258  uint16 connHandle;
1259  uint8 chSelAlgo;
1261 
1263 typedef struct
1264 {
1266  uint8 *pData;
1267 } hciPacket_t;
1268 
1270 typedef struct
1271 {
1273  uint8 pktType;
1274  uint16 connHandle;
1275  uint8 pbFlag;
1276  uint16 pktLen;
1277  uint8 *pData;
1278 } hciDataPacket_t;
1279 
1281 
1282 // OSAL HCI_DATA_EVENT message format. This message is used to forward incoming
1283 // data messages up to an application
1284 typedef struct
1285 {
1286  osal_event_hdr_t hdr;
1287  uint16 connHandle;
1288  uint8 pbFlag;
1289  uint16 len;
1290  uint8 *pData;
1291 } hciDataEvent_t;
1292 
1294 
1295 #if defined( CC26XX ) || defined( CC13XX )
1296 PACKED_TYPEDEF_STRUCT
1297 #else // CC254x
1298 typedef struct
1299 #endif // CC26XX/CC13XX
1300 {
1301  uint8 connId;
1302  uint8 role;
1303  uint8 addr[LL_DEVICE_ADDR_LEN];
1304  uint8 addrType;
1305 } hciConnInfo_t;
1306 
1307 #if defined( CC26XX ) || defined( CC13XX )
1308 PACKED_TYPEDEF_STRUCT
1309 #else // CC254x
1310 typedef struct
1311 #endif // CC26XX/CC13XX
1312 {
1313  uint32_t accessAddr;
1314  uint16_t connInterval;
1315  uint8_t hopValue;
1316  uint16_t mSCA;
1317  uint8_t nextChan;
1318  uint8_t chanMap[LL_NUM_BYTES_FOR_CHAN_MAP];
1319  uint8_t crcInit[LL_PKT_CRC_LEN];
1320 }hciActiveConnInfo_t;
1321 
1322 #if defined( CC26XX ) || defined( CC13XX )
1323 PACKED_TYPEDEF_STRUCT
1324 #else // CC254x
1325 typedef struct
1326 #endif // CC26XX/CC13XX
1327 {
1328  uint16 numPkts;
1329  uint16 numCrcErr;
1330  uint16 numEvents;
1331  uint16 numMMissedEvents;
1332 } hciPER_t;
1333 
1336 /*
1337  * LOCAL VARIABLES
1338  */
1339 
1340 /*
1341  * GLOBAL VARIABLES
1342  */
1343 
1345 
1356 extern void *HCI_bm_alloc( uint16 size );
1357 
1371 extern uint8 HCI_ValidConnTimeParams( uint16 connIntervalMin,
1372  uint16 connIntervalMax,
1373  uint16 connLatency,
1374  uint16 connTimeout );
1375 
1381 extern void HCI_TestAppTaskRegister( uint8 taskID );
1382 
1388 extern void HCI_GAPTaskRegister( uint8 taskID );
1389 
1395 extern void HCI_L2CAPTaskRegister( uint8 taskID );
1396 
1402 extern void HCI_SMPTaskRegister( uint8 taskID );
1403 
1409 extern void HCI_ExtTaskRegister( uint8 taskID );
1410 
1435 extern hciStatus_t HCI_SendDataPkt( uint16 connHandle,
1436  uint8 pbFlag,
1437  uint16 pktLen,
1438  uint8 *pData );
1439 
1455 extern hciStatus_t HCI_DisconnectCmd( uint16 connHandle,
1456  uint8 reason );
1457 
1459 
1477 extern hciStatus_t HCI_ReadRemoteVersionInfoCmd( uint16 connHandle );
1478 
1479 
1493 extern hciStatus_t HCI_SetEventMaskCmd( uint8 *pMask );
1494 
1495 
1509 extern hciStatus_t HCI_SetEventMaskPage2Cmd( uint8 *pMask );
1510 
1519 extern hciStatus_t HCI_ResetCmd( void );
1520 
1532 extern hciStatus_t HCI_ReadTransmitPowerLevelCmd( uint16 connHandle,
1533  uint8 txPwrType );
1534 
1536 
1550 extern hciStatus_t HCI_SetControllerToHostFlowCtrlCmd( uint8 flowControlEnable );
1551 
1571 extern hciStatus_t HCI_HostBufferSizeCmd( uint16 hostAclPktLen,
1572  uint8 hostSyncPktLen,
1573  uint16 hostTotalNumAclPkts,
1574  uint16 hostTotalNumSyncPkts );
1575 
1577 
1606 extern hciStatus_t HCI_HostNumCompletedPktCmd( uint8 numHandles,
1607  uint16 *connHandles,
1608  uint16 *numCompletedPkts );
1609 
1621 extern hciStatus_t HCI_ReadAuthPayloadTimeoutCmd( uint16 connHandle,
1622  uint16 *aptoValue );
1623 
1635 extern hciStatus_t HCI_WriteAuthPayloadTimeoutCmd( uint16 connHandle,
1636  uint16 aptoValue );
1637 
1646 extern hciStatus_t HCI_ReadLocalVersionInfoCmd( void );
1647 
1656 extern hciStatus_t HCI_ReadLocalSupportedCommandsCmd( void );
1657 
1666 extern hciStatus_t HCI_ReadLocalSupportedFeaturesCmd( void );
1667 
1676 extern hciStatus_t HCI_ReadBDADDRCmd( void );
1677 
1694 extern hciStatus_t HCI_ReadRssiCmd( uint16 connHandle );
1695 
1709 extern hciStatus_t HCI_LE_SetEventMaskCmd( uint8 *pEventMask );
1710 
1719 extern hciStatus_t HCI_LE_ReadBufSizeCmd( void );
1720 
1730 extern hciStatus_t HCI_LE_ReadLocalSupportedFeaturesCmd( void );
1731 
1743 extern hciStatus_t HCI_LE_SetRandomAddressCmd( uint8 *pRandAddr );
1744 
1762 extern hciStatus_t HCI_LE_SetAdvParamCmd( uint16 advIntervalMin,
1763  uint16 advIntervalMax,
1764  uint8 advType,
1765  uint8 ownAddrType,
1766  uint8 directAddrType,
1767  uint8 *directAddr,
1768  uint8 advChannelMap,
1769  uint8 advFilterPolicy );
1770 
1782 extern hciStatus_t HCI_LE_SetAdvDataCmd( uint8 dataLen,
1783  uint8 *pData );
1796 hciStatus_t HCI_LE_SetExtAdvData( aeSetDataCmd_t *pCmdParams );
1797 
1810 hciStatus_t HCI_LE_SetExtScanRspData( aeSetDataCmd_t *pCmdParams );
1811 
1825 hciStatus_t HCI_LE_SetAdvStatus( aeEnableCmd_t *pCmdParams );
1826 
1838 extern hciStatus_t HCI_LE_SetScanRspDataCmd( uint8 dataLen,
1839  uint8 *pData );
1840 
1851 extern hciStatus_t HCI_LE_SetAdvEnableCmd( uint8 advEnable );
1852 
1861 extern hciStatus_t HCI_LE_ReadAdvChanTxPowerCmd( void );
1862 
1879 extern hciStatus_t HCI_LE_SetScanParamCmd( uint8 scanType,
1880  uint16 scanInterval,
1881  uint16 scanWindow,
1882  uint8 ownAddrType,
1883  uint8 filterPolicy );
1884 
1897 extern hciStatus_t HCI_LE_SetScanEnableCmd( uint8 scanEnable,
1898  uint8 filterDuplicates );
1899 
1924 extern hciStatus_t HCI_LE_CreateConnCmd( uint16 scanInterval,
1925  uint16 scanWindow,
1926  uint8 initFilterPolicy,
1927  uint8 addrTypePeer,
1928  uint8 *peerAddr,
1929  uint8 ownAddrType,
1930  uint16 connIntervalMin,
1931  uint16 connIntervalMax,
1932  uint16 connLatency,
1933  uint16 connTimeout,
1934  uint16 minLen,
1935  uint16 maxLen );
1936 
1945 extern hciStatus_t HCI_LE_CreateConnCancelCmd( void );
1946 
1955 extern hciStatus_t HCI_LE_ReadWhiteListSizeCmd( void );
1956 
1957 
1966 extern hciStatus_t HCI_LE_ClearWhiteListCmd( void );
1967 
1968 
1980 extern hciStatus_t HCI_LE_AddWhiteListCmd( uint8 addrType,
1981  uint8 *devAddr );
1982 
1983 
1995 extern hciStatus_t HCI_LE_RemoveWhiteListCmd( uint8 addrType,
1996  uint8 *devAddr );
1997 
2015 extern hciStatus_t HCI_LE_ConnUpdateCmd( uint16 connHandle,
2016  uint16 connIntervalMin,
2017  uint16 connIntervalMax,
2018  uint16 connLatency,
2019  uint16 connTimeout,
2020  uint16 minLen,
2021  uint16 maxLen );
2022 
2033 extern hciStatus_t HCI_LE_SetHostChanClassificationCmd( uint8 *chanMap );
2034 
2045 extern hciStatus_t HCI_EXT_SetHostDefChanClassificationCmd( uint8 *chanMap );
2046 
2058 extern hciStatus_t HCI_EXT_SetHostConnChanClassificationCmd( uint8 *chanMap , uint16 connID );
2059 
2070 extern hciStatus_t HCI_LE_ReadChannelMapCmd( uint16 connHandle );
2071 
2084 extern hciStatus_t HCI_LE_ReadRemoteUsedFeaturesCmd( uint16 connHandle );
2085 
2106 extern hciStatus_t HCI_LE_EncryptCmd( uint8 *key,
2107  uint8 *plainText );
2108 
2131 extern hciStatus_t HCI_LE_RandCmd( void );
2132 
2148 extern hciStatus_t HCI_LE_StartEncyptCmd( uint16 connHandle,
2149  uint8 *random,
2150  uint8 *encDiv,
2151  uint8 *ltk );
2152 
2164 extern hciStatus_t HCI_LE_LtkReqReplyCmd( uint16 connHandle,
2165  uint8 *ltk );
2166 
2167 
2178 extern hciStatus_t HCI_LE_LtkReqNegReplyCmd( uint16 connHandle );
2179 
2188 extern hciStatus_t HCI_LE_ReadSupportedStatesCmd( void );
2189 
2202 extern hciStatus_t HCI_LE_ReceiverTestCmd( uint8 rxChan );
2203 
2220 extern hciStatus_t HCI_LE_TransmitterTestCmd( uint8 txChan,
2221  uint8 dataLen,
2222  uint8 pktPayload );
2223 
2234 extern hciStatus_t HCI_LE_TestEndCmd( void );
2235 
2236 // V4.1
2237 
2259 extern hciStatus_t HCI_LE_RemoteConnParamReqReplyCmd( uint16 connHandle,
2260  uint16 connIntervalMin,
2261  uint16 connIntervalMax,
2262  uint16 connLatency,
2263  uint16 connTimeout,
2264  uint16 minLen,
2265  uint16 maxLen );
2266 
2283 extern hciStatus_t HCI_LE_RemoteConnParamReqNegReplyCmd( uint16 connHandle,
2284  uint8 reason );
2285 
2286 // V4.2 Extended Data Length
2287 
2303 extern hciStatus_t HCI_LE_SetDataLenCmd( uint16 connHandle,
2304  uint16 txOctets,
2305  uint16 txTime );
2306 
2318 extern hciStatus_t HCI_LE_ReadSuggestedDefaultDataLenCmd( void );
2319 
2335 extern hciStatus_t HCI_LE_WriteSuggestedDefaultDataLenCmd( uint16 txOctets,
2336  uint16 txTime );
2337 
2349 extern hciStatus_t HCI_LE_ReadMaxDataLenCmd( void );
2350 
2351 // V4.2 Privacy 1.2
2352 
2369 extern hciStatus_t HCI_LE_AddDeviceToResolvingListCmd( uint8 peerIdAddrType,
2370  uint8 *peerIdAddr,
2371  uint8 *peerIRK,
2372  uint8 *localIRK );
2373 
2388 extern hciStatus_t HCI_LE_RemoveDeviceFromResolvingListCmd( uint8 peerIdAddrType,
2389  uint8 *peerIdAddr );
2390 
2402 extern hciStatus_t HCI_LE_ClearResolvingListCmd( void );
2403 
2415 extern hciStatus_t HCI_LE_ReadResolvingListSizeCmd( void );
2416 
2434 extern hciStatus_t HCI_LE_ReadPeerResolvableAddressCmd( uint8 peerIdAddrType,
2435  uint8 *peerIdAddr );
2436 
2455 extern hciStatus_t HCI_LE_ReadLocalResolvableAddressCmd( uint8 localIdAddrType,
2456  uint8 *localIdAddr );
2457 
2472 extern hciStatus_t HCI_LE_SetAddressResolutionEnableCmd( uint8 addrResolutionEnable );
2473 
2489 extern hciStatus_t HCI_LE_SetResolvablePrivateAddressTimeoutCmd( uint16 rpaTimeout );
2490 
2507 extern hciStatus_t HCI_LE_SetPrivacyModeCmd( uint8 peerIdAddrType,
2508  uint8 *peerIdAddr,
2509  uint8 privacyMode );
2510 
2511 // V4.2 Secure Connections
2512 
2528 extern hciStatus_t HCI_LE_ReadLocalP256PublicKeyCmd( void );
2529 
2548 extern hciStatus_t HCI_LE_GenerateDHKeyCmd( uint8 *publicKey );
2549 
2550 // V5.0 2M and Coded PHY
2551 
2567 extern hciStatus_t HCI_LE_ReadPhyCmd( uint16 connHandle );
2568 
2584 extern hciStatus_t HCI_LE_SetDefaultPhyCmd( uint8 allPhys,
2585  uint8 txPhy,
2586  uint8 rxPhy );
2587 
2588 
2603 extern hciStatus_t HCI_LE_SetPhyCmd( uint16 connHandle,
2604  uint8 allPhys,
2605  uint8 txPhy,
2606  uint8 rxPhy,
2607  uint16 phyOpts );
2608 
2609 
2625 extern hciStatus_t HCI_LE_EnhancedRxTestCmd( uint8 rxChan,
2626  uint8 rxPhy,
2627  uint8 modIndex );
2628 
2629 
2646 extern hciStatus_t HCI_LE_EnhancedTxTestCmd( uint8 txChan,
2647  uint8 payloadLen,
2648  uint8 payloadType,
2649  uint8 txPhy );
2670 extern hciStatus_t HCI_LE_EnhancedCteRxTestCmd( uint8 rxChan,
2671  uint8 rxPhy,
2672  uint8 modIndex,
2673  uint8 expectedCteLength,
2674  uint8 expectedCteType,
2675  uint8 slotDurations,
2676  uint8 length,
2677  uint8 *pAntenna);
2678 
2699 extern hciStatus_t HCI_LE_EnhancedCteTxTestCmd( uint8 txChan,
2700  uint8 payloadLen,
2701  uint8 payloadType,
2702  uint8 txPhy,
2703  uint8 cteLength,
2704  uint8 cteType,
2705  uint8 length,
2706  uint8 *pAntenna);
2715 extern hciStatus_t HCI_LE_ReadTxPowerCmd( void );
2716 
2725 extern hciStatus_t HCI_LE_ReadRfPathCompCmd( void );
2726 
2738 extern hciStatus_t HCI_LE_WriteRfPathCompCmd( int16 txPathParam,
2739  int16 rxPathParam );
2740 
2759 extern hciStatus_t HCI_LE_SetConnectionCteReceiveParamsCmd( uint16 connHandle,
2760  uint8 samplingEnable,
2761  uint8 slotDurations,
2762  uint8 length,
2763  uint8 *pAntenna);
2764 
2765 
2782 extern hciStatus_t HCI_LE_SetConnectionCteTransmitParamsCmd( uint16 connHandle,
2783  uint8 types,
2784  uint8 length,
2785  uint8 *pAntenna);
2786 
2803 extern hciStatus_t HCI_LE_SetConnectionCteRequestEnableCmd( uint16 connHandle,
2804  uint8 enable,
2805  uint16 interval,
2806  uint8 length,
2807  uint8 type);
2808 
2822 extern hciStatus_t HCI_LE_SetConnectionCteResponseEnableCmd( uint16 connHandle,
2823  uint8 enable);
2824 
2835 extern hciStatus_t HCI_LE_ReadAntennaInformationCmd( void );
2836 
2856 extern hciStatus_t HCI_LE_SetPeriodicAdvParamsCmd( uint8 advHandle,
2857  uint16 periodicAdvIntervalMin,
2858  uint16 periodicAdvIntervalMax,
2859  uint16 periodicAdvProp );
2860 
2861 
2884 extern hciStatus_t HCI_LE_SetPeriodicAdvDataCmd( uint8 advHandle,
2885  uint8 operation,
2886  uint8 dataLength,
2887  uint8 *data );
2888 
2904 extern hciStatus_t HCI_LE_SetPeriodicAdvEnableCmd( uint8 enable,
2905  uint8 advHandle );
2906 
2924 extern hciStatus_t HCI_LE_SetConnectionlessCteTransmitParamsCmd( uint8 advHandle,
2925  uint8 cteLen,
2926  uint8 cteType,
2927  uint8 cteCount,
2928  uint8 length,
2929  uint8 *pAntenna);
2930 
2945 extern hciStatus_t HCI_LE_SetConnectionlessCteTransmitEnableCmd( uint8 advHandle,
2946  uint8 enable );
2947 
2977 extern hciStatus_t HCI_LE_PeriodicAdvCreateSyncCmd( uint8 options,
2978  uint8 advSID,
2979  uint8 advAddrType,
2980  uint8 *advAddress,
2981  uint16 skip,
2982  uint16 syncTimeout,
2983  uint8 syncCteType );
2984 
2995 extern hciStatus_t HCI_LE_PeriodicAdvCreateSyncCancelCmd( void );
2996 
3012 extern hciStatus_t HCI_LE_PeriodicAdvTerminateSyncCmd( uint16 syncHandle );
3013 
3030 extern hciStatus_t HCI_LE_AddDeviceToPeriodicAdvListCmd( uint8 advAddrType,
3031  uint8 *advAddress,
3032  uint8 advSID );
3033 
3051 extern hciStatus_t HCI_LE_RemoveDeviceFromPeriodicAdvListCmd( uint8 advAddrType,
3052  uint8 *advAddress,
3053  uint8 advSID );
3054 
3065 extern hciStatus_t HCI_LE_ClearPeriodicAdvListCmd( void );
3066 
3078 extern hciStatus_t HCI_LE_ReadPeriodicAdvListSizeCmd( void );
3079 
3097 extern hciStatus_t HCI_LE_SetPeriodicAdvReceiveEnableCmd( uint16 syncHandle,
3098  uint8 enable );
3099 
3117 extern hciStatus_t HCI_LE_SetConnectionlessIqSamplingEnableCmd( uint16 syncHandle,
3118  uint8 samplingEnable,
3119  uint8 slotDurations,
3120  uint8 maxSampledCtes,
3121  uint8 length,
3122  uint8 *pAntenna);
3123 
3124 /*
3125 ** HCI Vendor Specific Commands: Link Layer Extensions
3126 */
3127 
3140 extern hciStatus_t HCI_EXT_SetRxGainCmd( uint8 rxGain );
3141 
3142 
3160 extern hciStatus_t HCI_EXT_SetTxPowerCmd( uint8 txPower );
3161 
3162 
3175 extern hciStatus_t HCI_EXT_OnePktPerEvtCmd( uint8 control );
3176 
3178 
3197 extern hciStatus_t HCI_EXT_ClkDivOnHaltCmd( uint8 control );
3198 
3220 extern hciStatus_t HCI_EXT_DeclareNvUsageCmd( uint8 mode );
3221 
3223 
3237 extern hciStatus_t HCI_EXT_DecryptCmd( uint8 *key,
3238  uint8 *encText );
3239 
3262 extern hciStatus_t HCI_EXT_SetLocalSupportedFeaturesCmd( uint8 *localFeatures );
3263 
3289 extern hciStatus_t HCI_EXT_SetFastTxResponseTimeCmd( uint8 control );
3290 
3291 
3310 extern hciStatus_t HCI_EXT_SetSlaveLatencyOverrideCmd( uint8 control );
3311 
3312 
3336 extern hciStatus_t HCI_EXT_ModemTestTxCmd( uint8 cwMode,
3337  uint8 txChan );
3338 
3360 extern hciStatus_t HCI_EXT_ModemHopTestTxCmd( void );
3361 
3384 extern hciStatus_t HCI_EXT_ModemTestRxCmd( uint8 rxChan );
3385 
3410 extern hciStatus_t HCI_EXT_EnhancedModemTestTxCmd( uint8 cwMode,
3411  uint8 rfPhy,
3412  uint8 rfChan );
3413 
3441 extern hciStatus_t HCI_EXT_EnhancedModemHopTestTxCmd( uint8 payloadLen,
3442  uint8 payloadType,
3443  uint8 rfPhy );
3444 
3468 extern hciStatus_t HCI_EXT_EnhancedModemTestRxCmd( uint8 rfPhy,
3469  uint8 rfChan );
3470 
3481 extern hciStatus_t HCI_EXT_EndModemTestCmd( void );
3482 
3505 extern hciStatus_t HCI_EXT_SetBDADDRCmd( uint8 *bdAddr );
3506 
3532 extern hciStatus_t HCI_EXT_SetSCACmd( uint16 scaInPPM );
3533 
3549 extern hciStatus_t HCI_EXT_EnablePTMCmd( void );
3550 
3570 extern hciStatus_t HCI_EXT_SetFreqTuneCmd( uint8 step );
3571 
3586 extern hciStatus_t HCI_EXT_SaveFreqTuneCmd( void );
3587 
3608 extern hciStatus_t HCI_EXT_SetMaxDtmTxPowerCmd( uint8 txPower );
3609 
3611 
3651 extern hciStatus_t HCI_EXT_MapPmIoPortCmd( uint8 ioPort, uint8 ioPin );
3652 
3654 
3670 extern hciStatus_t HCI_EXT_DisconnectImmedCmd( uint16 connHandle );
3671 
3690 extern hciStatus_t HCI_EXT_PacketErrorRateCmd( uint16 connHandle, uint8 command );
3691 
3733 extern hciStatus_t HCI_EXT_PERbyChanCmd( uint16 connHandle, perByChan_t *perByChan );
3734 
3736 
3745 extern hciStatus_t HCI_EXT_ExtendRfRangeCmd( void );
3746 
3759 extern hciStatus_t HCI_EXT_HaltDuringRfCmd( uint8 mode );
3760 
3762 
3764 
3818 extern hciStatus_t HCI_EXT_AdvEventNoticeCmd( uint8 taskID, uint16 taskEvent );
3819 
3821 
3876 extern hciStatus_t HCI_EXT_ConnEventNoticeCmd( uint16 connHandle, uint8 taskID, uint16 taskEvent );
3877 
3899 extern hciStatus_t HCI_EXT_BuildRevisionCmd( uint8 mode, uint16 userRevNum );
3900 
3902 
3934 extern hciStatus_t HCI_EXT_DelaySleepCmd( uint16 delay );
3935 
3937 
3956 extern hciStatus_t HCI_EXT_ResetSystemCmd( uint8 mode );
3957 
3958 // @cond NODOC
3959 
3970 extern hciStatus_t HCI_EXT_LLTestModeCmd( uint8 testCase );
3971 
3972 
3983 extern hciStatus_t HCI_EXT_OverlappedProcessingCmd( uint8 mode );
3984 
3986 
4007 extern hciStatus_t HCI_EXT_NumComplPktsLimitCmd( uint8 limit,
4008  uint8 flushOnEvt );
4009 
4042 extern hciStatus_t HCI_EXT_GetConnInfoCmd( uint8 *numAllocConns,
4043  uint8 *numActiveConns,
4044  hciConnInfo_t *activeConnInfo );
4045 
4062 extern hciStatus_t HCI_EXT_SetMaxDataLenCmd( uint16 txOctets,
4063  uint16 txTime,
4064  uint16 rxOctets,
4065  uint16 rxTime );
4066 
4079 extern hciStatus_t HCI_EXT_SetDtmTxPktCntCmd( uint16 txPktCnt );
4080 
4081 
4090 extern hciStatus_t HCI_EXT_ReadRandAddrCmd( void );
4091 
4092 
4104 extern hciStatus_t HCI_EXT_SetPinOutputCmd( uint8 dio,
4105  uint8 value );
4106 
4129 extern hciStatus_t HCI_EXT_SetLocationingAccuracyCmd( uint16 handle,
4130  uint8 sampleRate1M,
4131  uint8 sampleSize1M,
4132  uint8 sampleRate2M,
4133  uint8 sampleSize2M,
4134  uint8 sampleCtrl);
4135 
4157 extern hciStatus_t HCI_EXT_GetActiveConnInfoCmd( uint8 connId, hciActiveConnInfo_t *activeConnInfo );
4158 
4159 
4181 extern hciStatus_t HCI_EXT_SetVirtualAdvAddrCmd( uint8 advHandle, uint8 *bdAddr );
4182 
4206 extern hciStatus_t HCI_EXT_SetExtScanChannels( uint8 extScanChannelsMap );
4207 
4258 extern hciStatus_t HCI_EXT_SetQOSParameters( uint8 taskType,
4259  uint8 paramType,
4260  uint32 ParamVal,
4261  uint16 taskHandle);
4262 
4295 extern hciStatus_t HCI_EXT_SetQOSDefaultParameters(uint32 paramDefaultVal,
4296  uint8 paramType,
4297  uint8 taskType);
4298 
4309 extern hciStatus_t HCI_EXT_CoexEnableCmd( uint8 enable );
4310 
4311 #ifdef __cplusplus
4312 }
4313 #endif
4314 
4315 #endif /* HCI_H */
4316 
hciStatus_t HCI_EXT_PacketErrorRateCmd(uint16 connHandle, uint8 command)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1029
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1140
uint8 status
packet status (success or CRC error)
Definition: hci.h:1130
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:952
uint8 sampleCount
number of samples
Definition: hci.h:1132
uint8 status
status of event
Definition: hci.h:965
hciStatus_t HCI_LE_EnhancedCteTxTestCmd(uint8 txChan, uint8 payloadLen, uint8 payloadType, uint8 txPhy, uint8 cteLength, uint8 cteType, uint8 length, uint8 *pAntenna)
LE Extended CTE Connectionless IQ Report Event.
Definition: hci.h:1186
This API allows the software components in the Z-Stack to be written independently of the specifics o...
hciStatus_t HCI_EXT_SetQOSParameters(uint8 taskType, uint8 paramType, uint32 ParamVal, uint16 taskHandle)
This API is used to set the QOS Parameters according to the entered parameter type.
uint8 eventType
scan request event type
Definition: hci.h:931
uint16 * pNumCompletedPackets
pointer to the number of completed packets array
Definition: hci.h:996
hciStatus_t HCI_EXT_SetMaxDataLenCmd(uint16 txOctets, uint16 txTime, uint16 rxOctets, uint16 rxTime)
hciStatus_t HCI_EXT_SetPinOutputCmd(uint8 dio, uint8 value)
uint16 connHandle
connection handle
Definition: hci.h:1093
uint8 status
status of event
Definition: hci.h:953
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1240
uint8 status
status of event
Definition: hci.h:1082
uint8 phy
current phy
Definition: hci.h:1124
uint8 addrType
public or random address type
Definition: hci.h:910
uint8 pktType
packet type
Definition: hci.h:1273
hciStatus_t HCI_LE_SetExtAdvData(aeSetDataCmd_t *pCmdParams)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:974
hciStatus_t HCI_EXT_SetVirtualAdvAddrCmd(uint8 advHandle, uint8 *bdAddr)
This API is used to set the advertiser&#39;s virtual public address.
uint8 clockAccuracy
connection clock accuracy
Definition: hci.h:893
uint16 rssi
current rssi
Definition: hci.h:1175
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1256
uint16 Interval_Min
minimum connection interval
Definition: hci.h:1071
hciStatus_t HCI_LE_SetDefaultPhyCmd(uint8 allPhys, uint8 txPhy, uint8 rxPhy)
hciStatus_t HCI_LE_PeriodicAdvCreateSyncCancelCmd(void)
hciStatus_t HCI_LE_ReadPeriodicAdvListSizeCmd(void)
HCI Packet event.
Definition: hci.h:1263
osal_event_hdr_t hdr
osal event header
Definition: hci.h:983
hciStatus_t HCI_EXT_SetExtScanChannels(uint8 extScanChannelsMap)
This API is used to set the scan channels mapping.
L2CAP data length exceed Event.
Definition: hci.h:1057
#define B_RANDOM_NUM_SIZE
BLE Random Number Size.
Definition: bcomdef.h:133
uint8 numHandles
number of handles
Definition: hci.h:994
uint8 * pReturnParam
pointer to the return parameter
Definition: hci.h:1005
hciStatus_t HCI_LE_SetConnectionCteTransmitParamsCmd(uint16 connHandle, uint8 types, uint8 length, uint8 *pAntenna)
hciStatus_t HCI_LE_RemoveDeviceFromPeriodicAdvListCmd(uint8 advAddrType, uint8 *advAddress, uint8 advSID)
hciStatus_t HCI_LE_ReadRemoteUsedFeaturesCmd(uint16 connHandle)
LE CTE Connectionless IQ Report Event.
Definition: hci.h:1169
hciStatus_t HCI_LE_SetAddressResolutionEnableCmd(uint8 addrResolutionEnable)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:973
uint16 dataPktLen
data packet length
Definition: hci.h:1249
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:942
uint16 rssi
current rssi
Definition: hci.h:1126
Command Status Event.
Definition: hci.h:1018
void * iqSamples
list of interleaved I/Q samples (list size is dataLen*2)
Definition: hci.h:1165
hciStatus_t HCI_LE_SetPeriodicAdvParamsCmd(uint8 advHandle, uint16 periodicAdvIntervalMin, uint16 periodicAdvIntervalMax, uint16 periodicAdvProp)
uint16 connHandle
connection handle
Definition: hci.h:1083
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1091
osal_event_hdr_t hdr
osal event header
Definition: hci.h:929
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1188
hciStatus_t HCI_EXT_CoexEnableCmd(uint8 enable)
hciStatus_t HCI_LE_AddDeviceToPeriodicAdvListCmd(uint8 advAddrType, uint8 *advAddress, uint8 advSID)
hciStatus_t HCI_LE_TestEndCmd(void)
hciStatus_t HCI_LE_SetResolvablePrivateAddressTimeoutCmd(uint16 rpaTimeout)
uint8 sampleRate
sample rate (1/2/3/4 MHz)
Definition: hci.h:1201
hciStatus_t HCI_EXT_SetMaxDtmTxPowerCmd(uint8 txPower)
hciStatus_t HCI_LE_LtkReqNegReplyCmd(uint16 connHandle)
Hardware Error Event.
Definition: hci.h:1027
hciStatus_t HCI_EXT_ModemTestTxCmd(uint8 cwMode, uint8 txChan)
hciStatus_t HCI_LE_TransmitterTestCmd(uint8 txChan, uint8 dataLen, uint8 pktPayload)
uint8 peerAddrType
peer address type
Definition: hci.h:888
uint16 connHandle
connection handle
Definition: hci.h:1142
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1122
uint8 status
status of event
Definition: hci.h:1037
int8 txPower
Tx Power information.
Definition: hci.h:1228
hciStatus_t HCI_LE_RandCmd(void)
uint8 clockAccuracy
Peer Clock Accuracy.
Definition: hci.h:1219
LE Advertising Report Event.
Definition: hci.h:907
uint8 sampleCount
number of samples
Definition: hci.h:1181
uint8 dataChIndex
index of data channel
Definition: hci.h:1125
hciStatus_t HCI_EXT_ReadRandAddrCmd(void)
hciStatus_t HCI_LE_ReadRfPathCompCmd(void)
uint8 status
status of event
Definition: hci.h:1212
#define B_MAX_ADV_LEN
BLE Maximum Advertising Packet Length.
Definition: bcomdef.h:130
uint8 nextDataChan
next channel
Definition: hci.h:944
uint8 dataChIndex
index of data channel
Definition: hci.h:1154
hciStatus_t HCI_LE_ReadResolvingListSizeCmd(void)
uint8 cteType
cte type
Definition: hci.h:1157
LE CTE Connection IQ Report Event.
Definition: hci.h:1119
LE Data Length Change Event.
Definition: hci.h:1089
hciStatus_t HCI_SetEventMaskPage2Cmd(uint8 *pMask)
hciStatus_t HCI_LE_ReadLocalSupportedFeaturesCmd(void)
hciStatus_t HCI_LE_RemoteConnParamReqReplyCmd(uint16 connHandle, uint16 connIntervalMin, uint16 connIntervalMax, uint16 connLatency, uint16 connTimeout, uint16 minLen, uint16 maxLen)
hciStatus_t HCI_LE_ReadAdvChanTxPowerCmd(void)
uint8 numDevices
number of discovered devices
Definition: hci.h:922
uint8 cteType
cte type
Definition: hci.h:1196
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1211
uint16 syncHandle
sync handle in periodic adv
Definition: hci.h:1173
uint16 connectionHandle
connection handle
Definition: hci.h:870
uint16 connHandle
connection handle
Definition: hci.h:1274
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1092
hciStatus_t HCI_EXT_EnablePTMCmd(void)
hciStatus_t HCI_LE_SetDataLenCmd(uint16 connHandle, uint16 txOctets, uint16 txTime)
hciStatus_t HCI_LE_SetConnectionCteReceiveParamsCmd(uint16 connHandle, uint8 samplingEnable, uint8 slotDurations, uint8 length, uint8 *pAntenna)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:963
uint8 sampleCtrl
sample control - default filtering or RAW_RF
Definition: hci.h:1203
hciStatus_t HCI_LE_EnhancedCteRxTestCmd(uint8 rxChan, uint8 rxPhy, uint8 modIndex, uint8 expectedCteLength, uint8 expectedCteType, uint8 slotDurations, uint8 length, uint8 *pAntenna)
LE Phy Update Complete Event.
Definition: hci.h:1078
uint16 connEvent
connection event
Definition: hci.h:1160
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1052
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1139
osal_event_hdr_t hdr
osal event header
Definition: hci.h:993
uint8 status
packet status (success or CRC error)
Definition: hci.h:1159
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1068
hciStatus_t HCI_LE_EnhancedRxTestCmd(uint8 rxChan, uint8 rxPhy, uint8 modIndex)
uint8 rssiAntenna
antenna ID
Definition: hci.h:1127
uint8 dataStatus
Periodic data status.
Definition: hci.h:1231
hciStatus_t HCI_LE_ReadAntennaInformationCmd(void)
uint8 BLEEventCode
BLE Event code.
Definition: hci.h:1104
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1011
hciStatus_t HCI_WriteAuthPayloadTimeoutCmd(uint16 connHandle, uint16 aptoValue)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1036
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1178
hciStatus_t HCI_LE_SetHostChanClassificationCmd(uint8 *chanMap)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1113
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1171
hciStatus_t HCI_EXT_SetHostConnChanClassificationCmd(uint8 *chanMap, uint16 connID)
union _hciEvt_BLEConnComplete_u_ hciEvt_BLEConnComplete_u
LE Connection Complete Event.
uint16 connInterval
connection interval
Definition: hci.h:874
hciStatus_t HCI_LE_LtkReqReplyCmd(uint16 connHandle, uint8 *ltk)
uint16 Interval_Max
maximum connection interval
Definition: hci.h:1072
uint8 length
length of parametric data, in bytes
Definition: hci.h:1012
hciStatus_t HCI_EXT_NumComplPktsLimitCmd(uint8 limit, uint8 flushOnEvt)
hciStatus_t HCI_LE_SetPeriodicAdvDataCmd(uint8 advHandle, uint8 operation, uint8 dataLength, uint8 *data)
Used to set the advertiser data used in periodic advertising PDUs. This command may be issued at any ...
uint16 connectionHandle
connection handle
Definition: hci.h:966
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1081
uint16 maxRxTime
maximum receive time
Definition: hci.h:1097
hciStatus_t HCI_ReadRssiCmd(uint16 connHandle)
uint8 status
status
Definition: hci.h:1105
hciStatus_t HCI_LE_PeriodicAdvCreateSyncCmd(uint8 options, uint8 advSID, uint8 advAddrType, uint8 *advAddress, uint16 skip, uint16 syncTimeout, uint8 syncCteType)
uint16 connectionHandle
connection handle
Definition: hci.h:886
uint8 sampleSize
sample size (8 or 16 bit)
Definition: hci.h:1163
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1225
hciStatus_t HCI_LE_CreateConnCancelCmd(void)
uint8 rssiAntenna
antenna ID
Definition: hci.h:1195
uint16 cid
L2CAP channel ID.
Definition: hci.h:1061
uint16 connTimeout
connection supervision timeout
Definition: hci.h:957
uint8 encEnable
encryption enabled or not
Definition: hci.h:977
uint8 eventIndex
event number
Definition: hci.h:1151
uint16 Latency
slave latency
Definition: hci.h:1073
hciStatus_t HCI_LE_ReadSupportedStatesCmd(void)
uint16 connLatency
connection latency
Definition: hci.h:891
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1158
uint8 eventIndex
event number
Definition: hci.h:1191
uint8 linkType
synchronous or asynchronous buffer overflow
Definition: hci.h:1046
hciStatus_t HCI_LE_ReadLocalP256PublicKeyCmd(void)
Vendor Specific Command Complete Event.
Definition: hci.h:1009
osal_event_hdr_t hdr
osal event header
Definition: hci.h:951
hciStatus_t HCI_EXT_DecryptCmd(uint8 *key, uint8 *encText)
hciStatus_t HCI_EXT_SetFreqTuneCmd(uint8 step)
hciStatus_t HCI_EXT_SetDtmTxPktCntCmd(uint16 txPktCnt)
Data structure for HCI Command Complete Event Return Parameter.
Definition: hci.h:1246
hciStatus_t HCI_LE_SetAdvParamCmd(uint16 advIntervalMin, uint16 advIntervalMax, uint8 advType, uint8 ownAddrType, uint8 directAddrType, uint8 *directAddr, uint8 advChannelMap, uint8 advFilterPolicy)
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1129
void * iqSamples
list of interleaved I/Q samples (list size is dataLen*2)
Definition: hci.h:1204
uint16 totalDataLen
samples data length includes in all next events
Definition: hci.h:1190
hciStatus_t HCI_LE_EnhancedTxTestCmd(uint8 txChan, uint8 payloadLen, uint8 payloadType, uint8 txPhy)
hciStatus_t HCI_SetEventMaskCmd(uint8 *pMask)
hciStatus_t HCI_LE_SetPeriodicAdvEnableCmd(uint8 enable, uint8 advHandle)
Used to request the advertiser to enable or disable the periodic advertising for the advertising set...
hciStatus_t HCI_LE_AddWhiteListCmd(uint8 addrType, uint8 *devAddr)
uint8 clockAccuracy
connection clock accuracy
Definition: hci.h:877
Disconnection Complete Event.
Definition: hci.h:1034
hciStatus_t HCI_EXT_SaveFreqTuneCmd(void)
hciStatus_t HCI_EXT_GetActiveConnInfoCmd(uint8 connId, hciActiveConnInfo_t *activeConnInfo)
This API is used to get connection related information required to follow the target connection with ...
hciStatus_t HCI_LE_ReadSuggestedDefaultDataLenCmd(void)
hciStatus_t HCI_EXT_ResetSystemCmd(uint8 mode)
hciStatus_t HCI_LE_SetConnectionCteRequestEnableCmd(uint16 connHandle, uint8 enable, uint16 interval, uint8 length, uint8 type)
osal_event_hdr_t hdr
OSAL Event header.
Definition: hci.h:1272
Authenticated Payload Timeout Expired Event.
Definition: hci.h:1050
hciStatus_t HCI_EXT_EnhancedModemTestTxCmd(uint8 cwMode, uint8 rfPhy, uint8 rfChan)
uint8 sid
Peer SID.
Definition: hci.h:1214
hciStatus_t HCI_LE_CreateConnCmd(uint16 scanInterval, uint16 scanWindow, uint8 initFilterPolicy, uint8 addrTypePeer, uint8 *peerAddr, uint8 ownAddrType, uint16 connIntervalMin, uint16 connIntervalMax, uint16 connLatency, uint16 connTimeout, uint16 minLen, uint16 maxLen)
uint16 periodicInterval
Periodic interval.
Definition: hci.h:1218
hciStatus_t HCI_LE_ReadWhiteListSizeCmd(void)
uint16 connHandle
connection handle
Definition: hci.h:1070
uint8 sampleSize
sample size (8 or 16 bit)
Definition: hci.h:1202
hciStatus_t HCI_LE_SetExtScanRspData(aeSetDataCmd_t *pCmdParams)
uint16 maxTxTime
maximum transmission time
Definition: hci.h:1095
hciStatus_t HCI_LE_SetEventMaskCmd(uint8 *pEventMask)
int8 rssi
report RSSI
Definition: hci.h:914
uint16 connLatency
connection latency
Definition: hci.h:956
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:921
hciStatus_t HCI_EXT_SetQOSDefaultParameters(uint32 paramDefaultVal, uint8 paramType, uint8 taskType)
This API is used to set the Default QOS Parameters Values.
uint8 * pData
data
Definition: hci.h:1277
hciStatus_t HCI_EXT_SetRxGainCmd(uint8 rxGain)
uint8 reason
reason
Definition: hci.h:976
int8 rssi
report RSSI
Definition: hci.h:935
Periodic Advertising Sync Lost Event.
Definition: hci.h:1237
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:984
uint16 cmdOpcode
command opcode
Definition: hci.h:1023
hciStatus_t HCI_LE_SetPeriodicAdvReceiveEnableCmd(uint16 syncHandle, uint8 enable)
uint8 chSelAlgo
channel selection algorithm
Definition: hci.h:1259
LE CTE Request Failed Event.
Definition: hci.h:1137
hciStatus_t HCI_ReadRemoteVersionInfoCmd(uint16 connHandle)
uint8 * data
Periodic data received from peer.
Definition: hci.h:1233
osal_event_hdr_t hdr
OSAL event header.
Definition: hci.h:1265
uint8 channelIndex
index of channel
Definition: hci.h:1193
hciStatus_t HCI_EXT_EndModemTestCmd(void)
hciStatus_t HCI_LE_ReadTxPowerCmd(void)
hciStatus_t HCI_LE_EncryptCmd(uint8 *key, uint8 *plainText)
hciStatus_t HCI_ReadLocalVersionInfoCmd(void)
hciStatus_t HCI_LE_ReadBufSizeCmd(void)
hciStatus_t HCI_LE_ReadLocalResolvableAddressCmd(uint8 localIdAddrType, uint8 *localIdAddr)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1149
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1103
hciStatus_t HCI_EXT_ModemHopTestTxCmd(void)
Command Complete Event.
Definition: hci.h:1000
uint8 rxPhy
RX PHY.
Definition: hci.h:1085
uint16 syncHandle
sync handle
Definition: hci.h:1227
hciEvt_DevInfo_t * devInfo
pointer to the array of devInfo
Definition: hci.h:923
LE Channel Selection Algorithm Event.
Definition: hci.h:1254
uint16 connHandle
connection handle
Definition: hci.h:975
HCI Data Packet.
Definition: hci.h:1270
uint8 status
status
Definition: hci.h:1114
uint8 status
status of event
Definition: hci.h:869
uint16 connTimeout
connection supervision timeout
Definition: hci.h:892
uint16 Timeout
supervision timeout
Definition: hci.h:1074
LE Generate DHKey Complete Event.
Definition: hci.h:1110
uint16 connHandle
connection handle
Definition: hci.h:1060
hciStatus_t HCI_EXT_EnhancedModemHopTestTxCmd(uint8 payloadLen, uint8 payloadType, uint8 rfPhy)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1148
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1239
uint16 * pConnectionHandle
pointer to the connection handle array
Definition: hci.h:995
uint16 eventCounter
periodic adv event counter
Definition: hci.h:1199
LE Remote Connection Parameter Request Event.
Definition: hci.h:1065
hciStatus_t HCI_EXT_PERbyChanCmd(uint16 connHandle, perByChan_t *perByChan)
uint8 status
packet status (success or CRC error)
Definition: hci.h:1198
uint16 connEvent
connection event
Definition: hci.h:1131
uint16 connLatency
connection latency
Definition: hci.h:875
uint8 status
status of event
Definition: hci.h:1069
hciStatus_t HCI_ReadLocalSupportedCommandsCmd(void)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:930
hciStatus_t HCI_EXT_ModemTestRxCmd(uint8 rxChan)
uint16 connInterval
connection interval
Definition: hci.h:890
uint8 bleChan
BLE channel.
Definition: hci.h:934
uint8 eventType
advertisement or scan response event type
Definition: hci.h:909
osal_event_hdr_t hdr
osal event header
Definition: hci.h:867
hciEvt_BLEEnhConnComplete_t enhEvt
enhanced connection complete event
Definition: hci.h:903
int8 rssi
RSSI of the received packet.
Definition: hci.h:1229
int8 * iqSamples
list of interleaved I/Q samples
Definition: hci.h:1182
uint16 connHandle
connection handle
Definition: hci.h:1152
hciStatus_t HCI_LE_SetAdvEnableCmd(uint8 advEnable)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:883
hciStatus_t HCI_LE_ClearPeriodicAdvListCmd(void)
hciStatus_t HCI_LE_ClearResolvingListCmd(void)
hciStatus_t HCI_EXT_SetSlaveLatencyOverrideCmd(uint8 control)
hciStatus_t HCI_EXT_OnePktPerEvtCmd(uint8 control)
hciStatus_t HCI_EXT_SetLocationingAccuracyCmd(uint16 handle, uint8 sampleRate1M, uint8 sampleSize1M, uint8 sampleRate2M, uint8 sampleSize2M, uint8 sampleCtrl)
uint16 connTimeout
connection supervision timeout
Definition: hci.h:876
Type definitions and macros for BLE stack.
VS LE Scan Request Report Event.
Definition: hci.h:927
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1121
hciStatus_t HCI_EXT_SetFastTxResponseTimeCmd(uint8 control)
LE Encryption Change Event.
Definition: hci.h:971
hciStatus_t HCI_EXT_BuildRevisionCmd(uint8 mode, uint16 userRevNum)
hciStatus_t HCI_LE_ReadPhyCmd(uint16 connHandle)
uint16 syncHandle
sync handle
Definition: hci.h:1213
hciStatus_t HCI_LE_SetScanRspDataCmd(uint8 dataLen, uint8 *pData)
uint16 connInterval
connection interval
Definition: hci.h:955
uint8 phy
current phy
Definition: hci.h:1153
uint8 * pEventParam
event parameters
Definition: hci.h:1014
uint8 channelIndex
index of channel
Definition: hci.h:1174
hciEvt_BLEConnComplete_t legEvt
connection complete event
Definition: hci.h:902
hciStatus_t HCI_ReadTransmitPowerLevelCmd(uint16 connHandle, uint8 txPwrType)
uint8 cmdStatus
command status
Definition: hci.h:1021
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1059
LE Enhanced Connection Complete Event.
Definition: hci.h:881
hciStatus_t HCI_LE_SetPhyCmd(uint16 connHandle, uint8 allPhys, uint8 txPhy, uint8 rxPhy, uint16 phyOpts)
uint16 connHandle
connection handle
Definition: hci.h:1053
uint16 cmdOpcode
command opcode
Definition: hci.h:1004
hciStatus_t HCI_LE_SetConnectionlessCteTransmitEnableCmd(uint8 advHandle, uint8 enable)
Used by the Host to request that the Controller enables or disables the use of Constant Tone Extensio...
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:868
Number of Completed Packets Event.
Definition: hci.h:991
hciStatus_t HCI_LE_ReadPeerResolvableAddressCmd(uint8 peerIdAddrType, uint8 *peerIdAddr)
OSAL Event Header.
Definition: osal.h:92
uint8 cteType
CTE type received.
Definition: hci.h:1230
hciStatus_t HCI_EXT_SetLocalSupportedFeaturesCmd(uint8 *localFeatures)
hciStatus_t HCI_LE_ReceiverTestCmd(uint8 rxChan)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:884
uint8 txPhy
TX PHY.
Definition: hci.h:1084
hciStatus_t HCI_LE_RemoveDeviceFromResolvingListCmd(uint8 peerIdAddrType, uint8 *peerIdAddr)
hciStatus_t HCI_LE_RemoveWhiteListCmd(uint8 addrType, uint8 *devAddr)
uint8 numDataPkts
number of data packets
Definition: hci.h:1250
uint16 connHandle
connection handle
Definition: hci.h:943
uint16 rssi
current rssi
Definition: hci.h:1194
LE Periodic Advertising Report event.
Definition: hci.h:1223
hciStatus_t HCI_EXT_EnhancedModemTestRxCmd(uint8 rfPhy, uint8 rfChan)
uint16 pktLen
packet length
Definition: hci.h:1276
hciStatus_t HCI_EXT_SetBDADDRCmd(uint8 *bdAddr)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1112
uint8 peerAddrType
peer address type
Definition: hci.h:872
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1020
hciStatus_t HCI_LE_PeriodicAdvTerminateSyncCmd(uint16 syncHandle)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1226
hciStatus_t HCI_LE_StartEncyptCmd(uint16 connHandle, uint8 *random, uint8 *encDiv, uint8 *ltk)
uint8 phy
Peer PHY.
Definition: hci.h:1217
hciStatus_t HCI_EXT_ConnEventNoticeCmd(uint16 connHandle, uint8 taskID, uint16 taskEvent)
uint16 cmdOpcode
command opcode
Definition: hci.h:1013
uint8 reason
reason
Definition: hci.h:1039
uint8 numHciCmdPkt
number of HCI Command Packet
Definition: hci.h:1003
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1067
LE Extended CTE Connection IQ Report Event.
Definition: hci.h:1146
uint8 hardwareCode
hardware error code
Definition: hci.h:1030
#define B_ADDR_LEN
Default Public and Random Address Length.
Definition: bcomdef.h:108
Data Buffer Overflow Event.
Definition: hci.h:1043
uint8 role
role of connection
Definition: hci.h:887
LE Connection Complete Event.
Definition: hci.h:865
uint8 numHciCmdPkt
number of HCI command packets
Definition: hci.h:1022
uint8 dataLen
Periodic data length.
Definition: hci.h:1232
uint16 encryptedDiversifier
encrypted diversifier
Definition: hci.h:987
int8 * iqSamples
list of interleaved I/Q samples
Definition: hci.h:1133
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1197
hciStatus_t HCI_LE_AddDeviceToResolvingListCmd(uint8 peerIdAddrType, uint8 *peerIdAddr, uint8 *peerIRK, uint8 *localIRK)
LE Read Remote Used Features Complete Event.
Definition: hci.h:961
hciStatus_t HCI_LE_SetAdvDataCmd(uint8 dataLen, uint8 *pData)
uint16 eventCounter
periodic adv event counter
Definition: hci.h:1180
uint8 peerAddrType
peer address type
Definition: hci.h:932
uint16 syncHandle
sync handle
Definition: hci.h:1241
hciStatus_t HCI_LE_SetRandomAddressCmd(uint8 *pRandAddr)
uint16 totalDataLen
samples data length includes in all next events
Definition: hci.h:1150
hciStatus_t HCI_LE_SetScanParamCmd(uint8 scanType, uint16 scanInterval, uint16 scanWindow, uint8 ownAddrType, uint8 filterPolicy)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1189
VS LE Channel Map Update Event.
Definition: hci.h:939
hciStatus_t HCI_ReadLocalSupportedFeaturesCmd(void)
uint8 sampleRate
sample rate (1/2/3/4 MHz)
Definition: hci.h:1162
hciStatus_t HCI_LE_ReadChannelMapCmd(uint16 connHandle)
uint16 connHandle
connection handle
Definition: hci.h:1258
uint8 status
status of event
Definition: hci.h:1248
osal_event_hdr_t hdr
osal event header
Definition: hci.h:941
hciStatus_t HCI_LE_ClearWhiteListCmd(void)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1002
LE Periodic Advertising Sync Established event.
Definition: hci.h:1208
hciStatus_t HCI_LE_ReadMaxDataLenCmd(void)
hciStatus_t HCI_EXT_SetSCACmd(uint16 scaInPPM)
uint16 connHandle
connection handle
Definition: hci.h:1123
hciStatus_t HCI_LE_SetConnectionlessCteTransmitParamsCmd(uint8 advHandle, uint8 cteLen, uint8 cteType, uint8 cteCount, uint8 length, uint8 *pAntenna)
Used by the Host to set the type, length, and antenna switching pattern for the transmission of Const...
uint8 cteType
cte type
Definition: hci.h:1128
uint16 maxTxOctets
maximum transmission bytes
Definition: hci.h:1094
hciStatus_t HCI_LE_SetConnectionlessIqSamplingEnableCmd(uint16 syncHandle, uint8 samplingEnable, uint8 slotDurations, uint8 maxSampledCtes, uint8 length, uint8 *pAntenna)
uint8 addrType
Peer address type.
Definition: hci.h:1215
uint16 rssi
current rssi
Definition: hci.h:1155
hciStatus_t HCI_ReadBDADDRCmd(void)
uint8 status
packet status (success or CRC error)
Definition: hci.h:1179
uint8 rssiAntenna
antenna ID
Definition: hci.h:1156
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1080
hciStatus_t HCI_HostNumCompletedPktCmd(uint8 numHandles, uint16 *connHandles, uint16 *numCompletedPkts)
hciStatus_t HCI_LE_GenerateDHKeyCmd(uint8 *publicKey)
hciStatus_t HCI_ReadAuthPayloadTimeoutCmd(uint16 connHandle, uint16 *aptoValue)
LE Connection Complete Event.
Definition: hci.h:900
hciStatus_t HCI_LE_SetConnectionCteResponseEnableCmd(uint16 connHandle, uint8 enable)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1172
LE Connection Update Complete Event.
Definition: hci.h:949
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1257
hciStatus_t HCI_EXT_SetTxPowerCmd(uint8 txPower)
uint8 status
status of event
Definition: hci.h:885
hciStatus_t HCI_LE_WriteSuggestedDefaultDataLenCmd(uint16 txOctets, uint16 txTime)
LE Read P256 Public Key Complete Event.
Definition: hci.h:1101
hciStatus_t HCI_LE_SetScanEnableCmd(uint8 scanEnable, uint8 filterDuplicates)
uint8 dataLen
samples data length
Definition: hci.h:1200
uint8 dataLen
length of report data
Definition: hci.h:912
uint8 dataLen
samples data length
Definition: hci.h:1161
uint8 status
status
Definition: hci.h:1141
uint8 * pData
data
Definition: hci.h:1266
uint8 cteType
cte type
Definition: hci.h:1177
LE Advertising Packet Report Event.
Definition: hci.h:918
uint8 rssiAntenna
antenna ID
Definition: hci.h:1176
uint16 syncHandle
sync handle in periodic adv
Definition: hci.h:1192
hciStatus_t HCI_EXT_DisconnectImmedCmd(uint16 connHandle)
uint16 connHandle
connection handle
Definition: hci.h:1038
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:964
hciStatus_t HCI_LE_RemoteConnParamReqNegReplyCmd(uint16 connHandle, uint8 reason)
hciStatus_t HCI_LE_WriteRfPathCompCmd(int16 txPathParam, int16 rxPathParam)
hciStatus_t HCI_LE_ConnUpdateCmd(uint16 connHandle, uint16 connIntervalMin, uint16 connIntervalMax, uint16 connLatency, uint16 connTimeout, uint16 minLen, uint16 maxLen)
hciStatus_t HCI_LE_SetAdvStatus(aeEnableCmd_t *pCmdParams)
uint8 pbFlag
flag
Definition: hci.h:1275
uint16 maxRxOctets
maximum receive bytes
Definition: hci.h:1096
uint8 role
role of connection
Definition: hci.h:871
hciStatus_t HCI_ResetCmd(void)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1045
hciStatus_t HCI_EXT_SetHostDefChanClassificationCmd(uint8 *chanMap)
hciStatus_t HCI_LE_SetPrivacyModeCmd(uint8 peerIdAddrType, uint8 *peerIdAddr, uint8 privacyMode)
uint16 connectionHandle
connection handle
Definition: hci.h:954
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1210
LE Long Term Key Requested Event.
Definition: hci.h:981
osal_event_hdr_t hdr
osal event header
Definition: hci.h:920
uint8 sampleCtrl
sample control - default filtering or RAW_RF
Definition: hci.h:1164
uint16 connHandle
connection handle
Definition: hci.h:985
hciStatus_t HCI_EXT_GetConnInfoCmd(uint8 *numAllocConns, uint8 *numActiveConns, hciConnInfo_t *activeConnInfo)
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale