TI BLE5-Stack API Documentation  2.01.03.00
hci.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  Group: WCS, BTS
4  $Target Device: DEVICES $
5 
6  ******************************************************************************
7  $License: TISD 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 "hal_assert.h"
332 
333 /*
334  * MACROS
335  */
336 
337 /*
338  * CONSTANTS
339  */
340 
351 #define HCI_SUCCESS 0x00
352 #define HCI_ERROR_CODE_UNKNOWN_HCI_CMD 0x01
353 #define HCI_ERROR_CODE_UNKNOWN_CONN_ID 0x02
354 #define HCI_ERROR_CODE_HW_FAILURE 0x03
355 #define HCI_ERROR_CODE_PAGE_TIMEOUT 0x04
356 #define HCI_ERROR_CODE_AUTH_FAILURE 0x05
357 #define HCI_ERROR_CODE_PIN_KEY_MISSING 0x06
358 #define HCI_ERROR_CODE_MEM_CAP_EXCEEDED 0x07
359 #define HCI_ERROR_CODE_CONN_TIMEOUT 0x08
360 #define HCI_ERROR_CODE_CONN_LIMIT_EXCEEDED 0x09
361 #define HCI_ERROR_CODE_SYNCH_CONN_LIMIT_EXCEEDED 0x0A
362 #define HCI_ERROR_CODE_ACL_CONN_ALREADY_EXISTS 0x0B
363 #define HCI_ERROR_CODE_CMD_DISALLOWED 0x0C
364 #define HCI_ERROR_CODE_CONN_REJ_LIMITED_RESOURCES 0x0D
365 #define HCI_ERROR_CODE_CONN_REJECTED_SECURITY_REASONS 0x0E
366 #define HCI_ERROR_CODE_CONN_REJECTED_UNACCEPTABLE_BDADDR 0x0F
367 #define HCI_ERROR_CODE_CONN_ACCEPT_TIMEOUT_EXCEEDED 0x10
368 #define HCI_ERROR_CODE_UNSUPPORTED_FEATURE_PARAM_VALUE 0x11
369 #define HCI_ERROR_CODE_INVALID_HCI_CMD_PARAMS 0x12
370 #define HCI_ERROR_CODE_REMOTE_USER_TERM_CONN 0x13
371 #define HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_LOW_RESOURCES 0x14
372 #define HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_POWER_OFF 0x15
373 #define HCI_ERROR_CODE_CONN_TERM_BY_LOCAL_HOST 0x16
374 #define HCI_ERROR_CODE_REPEATED_ATTEMPTS 0x17
375 #define HCI_ERROR_CODE_PAIRING_NOT_ALLOWED 0x18
376 #define HCI_ERROR_CODE_UNKNOWN_LMP_PDU 0x19
377 #define HCI_ERROR_CODE_UNSUPPORTED_REMOTE_FEATURE 0x1A
378 #define HCI_ERROR_CODE_SCO_OFFSET_REJ 0x1B
379 #define HCI_ERROR_CODE_SCO_INTERVAL_REJ 0x1C
380 #define HCI_ERROR_CODE_SCO_AIR_MODE_REJ 0x1D
381 #define HCI_ERROR_CODE_INVALID_LMP_PARAMS 0x1E
382 #define HCI_ERROR_CODE_UNSPECIFIED_ERROR 0x1F
383 #define HCI_ERROR_CODE_UNSUPPORTED_LMP_PARAM_VAL 0x20
384 #define HCI_ERROR_CODE_ROLE_CHANGE_NOT_ALLOWED 0x21
385 #define HCI_ERROR_CODE_LMP_LL_RESP_TIMEOUT 0x22
386 #define HCI_ERROR_CODE_LMP_ERR_TRANSACTION_COLLISION 0x23
387 #define HCI_ERROR_CODE_LMP_PDU_NOT_ALLOWED 0x24
388 #define HCI_ERROR_CODE_ENCRYPT_MODE_NOT_ACCEPTABLE 0x25
389 #define HCI_ERROR_CODE_LINK_KEY_CAN_NOT_BE_CHANGED 0x26
390 #define HCI_ERROR_CODE_REQ_QOS_NOT_SUPPORTED 0x27
391 #define HCI_ERROR_CODE_INSTANT_PASSED 0x28
392 #define HCI_ERROR_CODE_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED 0x29
393 #define HCI_ERROR_CODE_DIFFERENT_TRANSACTION_COLLISION 0x2A
394 #define HCI_ERROR_CODE_RESERVED1 0x2B
395 #define HCI_ERROR_CODE_QOS_UNACCEPTABLE_PARAM 0x2C
396 #define HCI_ERROR_CODE_QOS_REJ 0x2D
397 #define HCI_ERROR_CODE_CHAN_ASSESSMENT_NOT_SUPPORTED 0x2E
398 #define HCI_ERROR_CODE_INSUFFICIENT_SECURITY 0x2F
399 #define HCI_ERROR_CODE_PARAM_OUT_OF_MANDATORY_RANGE 0x30
400 #define HCI_ERROR_CODE_RESERVED2 0x31
401 #define HCI_ERROR_CODE_ROLE_SWITCH_PENDING 0x32
402 #define HCI_ERROR_CODE_RESERVED3 0x33
403 #define HCI_ERROR_CODE_RESERVED_SLOT_VIOLATION 0x34
404 #define HCI_ERROR_CODE_ROLE_SWITCH_FAILED 0x35
405 #define HCI_ERROR_CODE_EXTENDED_INQUIRY_RESP_TOO_LARGE 0x36
406 #define HCI_ERROR_CODE_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST 0x37
407 #define HCI_ERROR_CODE_HOST_BUSY_PAIRING 0x38
408 #define HCI_ERROR_CODE_CONN_REJ_NO_SUITABLE_CHAN_FOUND 0x39
409 #define HCI_ERROR_CODE_CONTROLLER_BUSY 0x3A
410 #define HCI_ERROR_CODE_UNACCEPTABLE_CONN_PARAMETERS 0x3B
411 #define HCI_ERROR_CODE_DIRECTED_ADV_TIMEOUT 0x3C
412 #define HCI_ERROR_CODE_CONN_TERM_MIC_FAILURE 0x3D
413 #define HCI_ERROR_CODE_CONN_FAILED_TO_ESTABLISH 0x3E
414 #define HCI_ERROR_CODE_MAC_CONN_FAILED 0x3F
415 #define HCI_ERROR_CODE_COARSE_CLOCK_ADJUST_REJECTED 0x40
416 #define HCI_ERROR_CODE_TYPE0_SUBMAP_NOT_DEFINED 0x41
417 #define HCI_ERROR_CODE_UNKNOWN_ADVERTISING_IDENTIFIER 0x42
418 #define HCI_ERROR_CODE_LIMIT_REACHED 0x43
419 #define HCI_ERROR_CODE_OPERATION_CANCELLED_BY_HOST 0x44
420 
426 #define HCI_MAX_NUM_CMD_BUFFERS LL_MAX_NUM_CMD_BUFFERS
427 #if defined(CC2540) || defined(CC2541) || defined(CC2541S)
428 #define HCI_MAX_NUM_DATA_BUFFERS LL_MAX_NUM_DATA_BUFFERS //<! Max Num Data Buffers
429 #endif // CC2540 | CC2541 | CC2541S
430 
434 // Send Data Packet Boundary Flags
435 #define FIRST_PKT_HOST_TO_CTRL LL_DATA_FIRST_PKT_HOST_TO_CTRL
436 #define CONTINUING_PKT LL_DATA_CONTINUATION_PKT
437 #define FIRST_PKT_CTRL_TO_HOST LL_DATA_FIRST_PKT_CTRL_TO_HOST
438 
439 
441 #define HCI_RSSI_NOT_AVAILABLE LL_RSSI_NOT_AVAILABLE
442 
447 #define HCI_DISCONNECT_AUTH_FAILURE HCI_ERROR_CODE_AUTH_FAILURE
448 #define HCI_DISCONNECT_REMOTE_USER_TERM HCI_ERROR_CODE_REMOTE_USER_TERM_CONN
449 #define HCI_DISCONNECT_REMOTE_DEV_LOW_RESOURCES HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_LOW_RESOURCES
450 #define HCI_DISCONNECT_REMOTE_DEV_POWER_OFF HCI_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_POWER_OFF
451 #define HCI_DISCONNECT_UNSUPPORTED_REMOTE_FEATURE HCI_ERROR_CODE_UNSUPPORTED_REMOTE_FEATURE
452 #define HCI_DISCONNECT_KEY_PAIRING_NOT_SUPPORTED HCI_ERROR_CODE_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED
453 #define HCI_DISCONNECT_UNACCEPTABLE_CONN_INTERVAL HCI_ERROR_CODE_UNACCEPTABLE_CONN_INTERVAL
454 
460 // Tx Power Types
461 #define HCI_READ_CURRENT_TX_POWER_LEVEL LL_READ_CURRENT_TX_POWER_LEVEL
462 #define HCI_READ_MAX_TX_POWER_LEVEL LL_READ_MAX_TX_POWER_LEVEL
463 
469 #define HCI_CTRL_TO_HOST_FLOW_CTRL_OFF 0
470 #define HCI_CTRL_TO_HOST_FLOW_CTRL_ACL_ON_SYNCH_OFF 1
471 #define HCI_CTRL_TO_HOST_FLOW_CTRL_ACL_OFF_SYNCH_ON 2
472 #define HCI_CTRL_TO_HOST_FLOW_CTRL_ACL_ON_SYNCH_ON 3
473 
479 #define HCI_PUBLIC_DEVICE_ADDRESS LL_DEV_ADDR_TYPE_PUBLIC
480 #define HCI_RANDOM_DEVICE_ADDRESS LL_DEV_ADDR_TYPE_RANDOM
481 
487 #define HCI_CONNECTABLE_UNDIRECTED_ADV LL_ADV_CONNECTABLE_UNDIRECTED_EVT
488 #define HCI_CONNECTABLE_DIRECTED_HDC_ADV LL_ADV_CONNECTABLE_DIRECTED_HDC_EVT
489 #define HCI_SCANNABLE_UNDIRECTED LL_ADV_SCANNABLE_UNDIRECTED_EVT
490 #define HCI_NONCONNECTABLE_UNDIRECTED_ADV LL_ADV_NONCONNECTABLE_UNDIRECTED_EVT
491 #define HCI_CONNECTABLE_DIRECTED_LDC_ADV LL_ADV_CONNECTABLE_DIRECTED_LDC_EVT
492 
498 #define HCI_ADV_CHAN_37 LL_ADV_CHAN_37
499 #define HCI_ADV_CHAN_38 LL_ADV_CHAN_38
500 #define HCI_ADV_CHAN_39 LL_ADV_CHAN_39
501 #define HCI_ADV_CHAN_ALL (LL_ADV_CHAN_37 | LL_ADV_CHAN_38 | LL_ADV_CHAN_39)
502 
508 #define HCI_ADV_WL_POLICY_ANY_REQ LL_ADV_WL_POLICY_ANY_REQ
509 #define HCI_ADV_WL_POLICY_WL_SCAN_REQ LL_ADV_WL_POLICY_WL_SCAN_REQ
510 #define HCI_ADV_WL_POLICY_WL_CONNECT_IND LL_ADV_WL_POLICY_WL_CONNECT_IND
511 #define HCI_ADV_WL_POLICY_WL_ALL_REQ LL_ADV_WL_POLICY_WL_ALL_REQ
512 
518 #define HCI_ENABLE_ADV LL_ADV_MODE_ON
519 #define HCI_DISABLE_ADV LL_ADV_MODE_OFF
520 
526 #define HCI_SCAN_PASSIVE LL_SCAN_PASSIVE
527 #define HCI_SCAN_ACTIVE LL_SCAN_ACTIVE
528 
534 // Scan White List Policy
535 #define HCI_SCAN_WL_POLICY_ANY_ADV_PKTS LL_SCAN_WL_POLICY_ANY_ADV_PKTS
536 #define HCI_SCAN_WL_POLICY_USE_WHITE_LIST LL_SCAN_WL_POLICY_USE_WHITE_LIST
537 
543 // Scan Filtering
544 #define HCI_FILTER_REPORTS_DISABLE LL_FILTER_REPORTS_DISABLE
545 #define HCI_FILTER_REPORTS_ENABLE LL_FILTER_REPORTS_ENABLE
546 
552 // Scan Commands
553 #define HCI_SCAN_STOP LL_SCAN_STOP
554 #define HCI_SCAN_START LL_SCAN_START
555 
561 #define HCI_INIT_WL_POLICY_USE_PEER_ADDR LL_INIT_WL_POLICY_USE_PEER_ADDR
562 #define HCI_INIT_WL_POLICY_USE_WHITE_LIST LL_INIT_WL_POLICY_USE_WHITE_LIST
563 
569 #define HCI_ENCRYPTION_OFF LL_ENCRYPTION_OFF
570 #define HCI_ENCRYPTION_ON LL_ENCRYPTION_ON
571 
577 #define HCI_DIRECT_TEST_PAYLOAD_PRBS9 LL_DIRECT_TEST_PAYLOAD_PRBS9
578 #define HCI_DIRECT_TEST_PAYLOAD_0x0F LL_DIRECT_TEST_PAYLOAD_0x0F
579 #define HCI_DIRECT_TEST_PAYLOAD_0x55 LL_DIRECT_TEST_PAYLOAD_0x55
580 #define HCI_DIRECT_TEST_PAYLOAD_PRBS15 LL_DIRECT_TEST_PAYLOAD_PRBS15
581 #define HCI_DIRECT_TEST_PAYLOAD_0xFF LL_DIRECT_TEST_PAYLOAD_0xFF
582 #define HCI_DIRECT_TEST_PAYLOAD_0x00 LL_DIRECT_TEST_PAYLOAD_0x00
583 #define HCI_DIRECT_TEST_PAYLOAD_0xF0 LL_DIRECT_TEST_PAYLOAD_0xF0
584 #define HCI_DIRECT_TEST_PAYLOAD_0xAA LL_DIRECT_TEST_PAYLOAD_0xAA
585 
591 #define HCI_DTM_STANDARD_MODULATION_INDEX LL_DTM_STANDARD_MODULATION_INDEX
592 #define HCI_DTM_STABLE_MODULATION_INDEX LL_DTM_STABLE_MODULATION_INDEX
593 
599 #define HCI_EXT_DTM_TX_CONTINUOUS LL_EXT_DTM_TX_CONTINUOUS
600 
606 #define HCI_DISABLE_ADDR_RESOLUTION LL_DISABLE_ADDR_RESOLUTION
607 #define HCI_ENABLE_ADDR_RESOLUTION LL_ENABLE_ADDR_RESOLUTION
608 #define HCI_NETWORK_PRIVACY_MODE LL_NETWORK_PRIVACY_MODE
609 #define HCI_DEVICE_PRIVACY_MODE LL_DEVICE_PRIVACY_MODE
610 
616 #define HCI_PHY_USE_PHY_PARAM LL_PHY_USE_PHY_PARAM
617 #define HCI_PHY_USE_ANY_PHY LL_PHY_USE_ANY_PHY
618 #define HCI_PHY_1_MBPS LL_PHY_1_MBPS
619 #define HCI_PHY_2_MBPS LL_PHY_2_MBPS
620 #define HCI_PHY_CODED LL_PHY_CODED
621 
627 #define PHY_UPDATE_COMPLETE_EVENT_1M 1
628 #define PHY_UPDATE_COMPLETE_EVENT_2M 2
629 #define PHY_UPDATE_COMPLETE_EVENT_CODED 3
630 
636 #define HCI_EXT_RX_GAIN_STD LL_EXT_RX_GAIN_STD
637 #define HCI_EXT_RX_GAIN_HIGH LL_EXT_RX_GAIN_HIGH
638 
644 #if defined( CC26XX ) || defined( CC13XX )
645 #define HCI_EXT_TX_POWER_MINUS_20_DBM LL_EXT_TX_POWER_MINUS_20_DBM
646 #define HCI_EXT_TX_POWER_MINUS_18_DBM LL_EXT_TX_POWER_MINUS_18_DBM
647 #define HCI_EXT_TX_POWER_MINUS_15_DBM LL_EXT_TX_POWER_MINUS_15_DBM
648 #define HCI_EXT_TX_POWER_MINUS_12_DBM LL_EXT_TX_POWER_MINUS_12_DBM
649 #define HCI_EXT_TX_POWER_MINUS_10_DBM LL_EXT_TX_POWER_MINUS_10_DBM
650 #define HCI_EXT_TX_POWER_MINUS_9_DBM LL_EXT_TX_POWER_MINUS_9_DBM
651 #define HCI_EXT_TX_POWER_MINUS_6_DBM LL_EXT_TX_POWER_MINUS_6_DBM
652 #define HCI_EXT_TX_POWER_MINUS_5_DBM LL_EXT_TX_POWER_MINUS_5_DBM
653 #define HCI_EXT_TX_POWER_MINUS_3_DBM LL_EXT_TX_POWER_MINUS_3_DBM
654 #define HCI_EXT_TX_POWER_0_DBM LL_EXT_TX_POWER_0_DBM
655 #define HCI_EXT_TX_POWER_1_DBM LL_EXT_TX_POWER_1_DBM
656 #define HCI_EXT_TX_POWER_2_DBM LL_EXT_TX_POWER_2_DBM
657 #define HCI_EXT_TX_POWER_3_DBM LL_EXT_TX_POWER_3_DBM
658 #define HCI_EXT_TX_POWER_4_DBM LL_EXT_TX_POWER_4_DBM
659 #define HCI_EXT_TX_POWER_5_DBM LL_EXT_TX_POWER_5_DBM
660 #define HCI_EXT_TX_POWER_14_DBM LL_EXT_TX_POWER_14_DBM
661 #define HCI_EXT_TX_POWER_15_DBM LL_EXT_TX_POWER_15_DBM
662 #define HCI_EXT_TX_POWER_16_DBM LL_EXT_TX_POWER_16_DBM
663 #define HCI_EXT_TX_POWER_17_DBM LL_EXT_TX_POWER_17_DBM
664 #define HCI_EXT_TX_POWER_18_DBM LL_EXT_TX_POWER_18_DBM
665 #define HCI_EXT_TX_POWER_19_DBM LL_EXT_TX_POWER_19_DBM
666 #define HCI_EXT_TX_POWER_20_DBM LL_EXT_TX_POWER_20_DBM
667 #else // CC254x
668 #define HCI_EXT_TX_POWER_MINUS_23_DBM LL_EXT_TX_POWER_MINUS_23_DBM
669 #define HCI_EXT_TX_POWER_MINUS_6_DBM LL_EXT_TX_POWER_MINUS_6_DBM
670 #define HCI_EXT_TX_POWER_0_DBM LL_EXT_TX_POWER_0_DBM
671 #define HCI_EXT_TX_POWER_4_DBM LL_EXT_TX_POWER_4_DBM
672 #endif // CC26XX/CC13XX
673 
679 #define HCI_EXT_ENABLE_ONE_PKT_PER_EVT LL_EXT_ENABLE_ONE_PKT_PER_EVT
680 #define HCI_EXT_DISABLE_ONE_PKT_PER_EVT LL_EXT_DISABLE_ONE_PKT_PER_EVT
681 
683 
685 
689 #define HCI_EXT_ENABLE_CLK_DIVIDE_ON_HALT LL_EXT_ENABLE_CLK_DIVIDE_ON_HALT
690 #define HCI_EXT_DISABLE_CLK_DIVIDE_ON_HALT LL_EXT_DISABLE_CLK_DIVIDE_ON_HALT
691 
693 
695 
699 #define HCI_EXT_NV_IN_USE LL_EXT_NV_IN_USE
700 #define HCI_EXT_NV_NOT_IN_USE LL_EXT_NV_NOT_IN_USE
701 
707 #define HCI_EXT_ENABLE_FAST_TX_RESP_TIME LL_EXT_ENABLE_FAST_TX_RESP_TIME
708 #define HCI_EXT_DISABLE_FAST_TX_RESP_TIME LL_EXT_DISABLE_FAST_TX_RESP_TIME
709 
715 #define HCI_EXT_ENABLE_SL_OVERRIDE LL_EXT_ENABLE_SL_OVERRIDE
716 #define HCI_EXT_DISABLE_SL_OVERRIDE LL_EXT_DISABLE_SL_OVERRIDE
717 
723 #define HCI_EXT_TX_MODULATED_CARRIER LL_EXT_TX_MODULATED_CARRIER
724 #define HCI_EXT_TX_UNMODULATED_CARRIER LL_EXT_TX_UNMODULATED_CARRIER
725 
731 #define HCI_PTM_SET_FREQ_TUNE_DOWN LL_EXT_SET_FREQ_TUNE_DOWN
732 #define HCI_PTM_SET_FREQ_TUNE_UP LL_EXT_SET_FREQ_TUNE_UP
733 
735 
737 
741 #define HCI_EXT_PM_IO_PORT_P0 LL_EXT_PM_IO_PORT_P0
742 #define HCI_EXT_PM_IO_PORT_P1 LL_EXT_PM_IO_PORT_P1
743 #define HCI_EXT_PM_IO_PORT_P2 LL_EXT_PM_IO_PORT_P2
744 #define HCI_EXT_PM_IO_PORT_NONE LL_EXT_PM_IO_PORT_NONE
745 
746 #define HCI_EXT_PM_IO_PORT_PIN0 LL_EXT_PM_IO_PORT_PIN0
747 #define HCI_EXT_PM_IO_PORT_PIN1 LL_EXT_PM_IO_PORT_PIN1
748 #define HCI_EXT_PM_IO_PORT_PIN2 LL_EXT_PM_IO_PORT_PIN2
749 #define HCI_EXT_PM_IO_PORT_PIN3 LL_EXT_PM_IO_PORT_PIN3
750 #define HCI_EXT_PM_IO_PORT_PIN4 LL_EXT_PM_IO_PORT_PIN4
751 #define HCI_EXT_PM_IO_PORT_PIN5 LL_EXT_PM_IO_PORT_PIN5
752 #define HCI_EXT_PM_IO_PORT_PIN6 LL_EXT_PM_IO_PORT_PIN6
753 #define HCI_EXT_PM_IO_PORT_PIN7 LL_EXT_PM_IO_PORT_PIN7
754 
756 
762 #define HCI_EXT_PER_RESET LL_EXT_PER_RESET
763 #define HCI_EXT_PER_READ LL_EXT_PER_READ
764 
766 
768 
772 #define HCI_EXT_HALT_DURING_RF_DISABLE LL_EXT_HALT_DURING_RF_DISABLE
773 #define HCI_EXT_HALT_DURING_RF_ENABLE LL_EXT_HALT_DURING_RF_ENABLE
774 
776 
778 
782 #define HCI_EXT_SET_USER_REVISION LL_EXT_SET_USER_REVISION
783 #define HCI_EXT_READ_BUILD_REVISION LL_EXT_READ_BUILD_REVISION
784 
790 #define HCI_EXT_RESET_SYSTEM_HARD LL_EXT_RESET_SYSTEM_HARD
791 #define HCI_EXT_RESET_SYSTEM_SOFT LL_EXT_RESET_SYSTEM_SOFT
792 
794 
796 
800 #define HCI_EXT_DISABLE_OVERLAPPED_PROCESSING LL_EXT_DISABLE_OVERLAPPED_PROCESSING
801 #define HCI_EXT_ENABLE_OVERLAPPED_PROCESSING LL_EXT_ENABLE_OVERLAPPED_PROCESSING
802 
804 
806 
810 #define HCI_EXT_DISABLE_NUM_COMPL_PKTS_ON_EVENT LL_EXT_DISABLE_NUM_COMPL_PKTS_ON_EVENT
811 #define HCI_EXT_ENABLE_NUM_COMPL_PKTS_ON_EVENT LL_EXT_ENABLE_NUM_COMPL_PKTS_ON_EVENT
812 
818 #define HCI_EXT_DISABLE_SCAN_REQUEST_REPORT LL_EXT_DISABLE_SCAN_REQUEST_REPORT
819 #define HCI_EXT_ENABLE_SCAN_REQUEST_REPORT LL_EXT_ENABLE_SCAN_REQUEST_REPORT
820 
830 #define HCI_LINK_TYPE_SCO_BUFFER_OVERFLOW 0
831 #define HCI_LINK_TYPE_ACL_BUFFER_OVERFLOW 1
832 
840 #define HCI_EXT_RF_SETUP_1M_PHY LL_EXT_RF_SETUP_1M_PHY
841 #define HCI_EXT_RF_SETUP_2M_PHY LL_EXT_RF_SETUP_2M_PHY
842 #define HCI_EXT_RF_SETUP_CODED_S8_PHY LL_EXT_RF_SETUP_CODED_S8_PHY
843 #define HCI_EXT_RF_SETUP_CODED_S2_PHY LL_EXT_RF_SETUP_CODED_S2_PHY
844 
848 /*
849  * TYPEDEFS
850  */
851 
853 typedef uint8 hciStatus_t;
855 
861 typedef struct
863 {
865  uint8 BLEEventCode;
866  uint8 status;
868  uint8 role;
869  uint8 peerAddrType;
870  uint8 peerAddr[B_ADDR_LEN];
871  uint16 connInterval;
872  uint16 connLatency;
873  uint16 connTimeout;
876 
878 typedef struct
879 {
881  uint8 BLEEventCode;
882  uint8 status;
884  uint8 role;
885  uint8 peerAddrType;
886  uint8 peerAddr[B_ADDR_LEN];
887  uint16 connInterval;
888  uint16 connLatency;
889  uint16 connTimeout;
891  // Note: These fields normally follow peerAddr. Put here for Host optimization.
892  uint8 localRPA[B_ADDR_LEN];
893  uint8 peerRPA[B_ADDR_LEN];
895 
898 {
902 
904 typedef struct
905 {
906  uint8 eventType;
907  uint8 addrType;
908  uint8 addr[B_ADDR_LEN];
909  uint8 dataLen;
910  uint8 rspData[B_MAX_ADV_LEN];
911  int8 rssi;
913 
915 typedef struct
916 {
918  uint8 BLEEventCode;
919  uint8 numDevices;
922 
924 typedef struct
925 {
927  uint8 BLEEventCode;
928  uint8 eventType;
929  uint8 peerAddrType;
930  uint8 peerAddr[B_ADDR_LEN];
931  uint8 bleChan;
932  int8 rssi;
934 
936 typedef struct
937 {
939  uint8 BLEEventCode;
940  uint16 connHandle;
941  uint8 nextDataChan;
942  uint8 newChanMap[LL_NUM_BYTES_FOR_CHAN_MAP];
944 
946 typedef struct
947 {
949  uint8 BLEEventCode;
950  uint8 status;
952  uint16 connInterval;
953  uint16 connLatency;
954  uint16 connTimeout;
956 
958 typedef struct
959 {
961  uint8 BLEEventCode;
962  uint8 status;
964  uint8 features[8];
966 
968 typedef struct
969 {
971  uint8 BLEEventCode;
972  uint16 connHandle;
973  uint8 reason;
974  uint8 encEnable;
976 
978 typedef struct
979 {
981  uint8 BLEEventCode;
982  uint16 connHandle;
983  uint8 random[B_RANDOM_NUM_SIZE];
986 
988 typedef struct
989 {
991  uint8 numHandles;
995 
997 typedef struct
998 {
1001  uint16 cmdOpcode;
1002  uint8 *pReturnParam;
1004 
1006 typedef struct
1007 {
1009  uint8 length;
1010  uint16 cmdOpcode;
1011  uint8 *pEventParam;
1013 
1015 typedef struct
1016 {
1018  uint8 cmdStatus;
1020  uint16 cmdOpcode;
1022 
1024 typedef struct
1025 {
1029 
1031 typedef struct
1032 {
1034  uint8 status;
1035  uint16 connHandle;
1036  uint8 reason;
1038 
1040 typedef struct
1041 {
1043  uint8 linkType;
1045 
1047 typedef struct
1048 {
1050  uint16 connHandle;
1052 
1054 typedef struct
1055 {
1058  uint8 status;
1059  uint16 connHandle;
1060  uint16 Interval_Min;
1061  uint16 Interval_Max;
1062  uint16 Latency;
1063  uint16 Timeout;
1065 
1067 typedef struct
1068 {
1071  uint8 status;
1072  uint16 connHandle;
1073  uint8 txPhy;
1074  uint8 rxPhy;
1076 
1078 typedef struct
1079 {
1082  uint16 connHandle;
1083  uint16 maxTxOctets;
1084  uint16 maxTxTime;
1085  uint16 maxRxOctets;
1086  uint16 maxRxTime;
1088 
1090 typedef struct
1091 {
1094  uint8 status;
1095  uint8 p256Key[LL_SC_P256_KEY_LEN];
1097 
1099 typedef struct
1100 {
1103  uint8 status;
1104  uint8 dhKey[LL_SC_DHKEY_LEN];
1106 
1108 typedef struct
1109 {
1112  uint16 connHandle;
1113  uint8 phy;
1114  uint8 dataChIndex;
1115  uint16 rssi;
1116  uint8 rssiAntenna;
1117  uint8 cteType;
1119  uint8 status;
1120  uint16 connEvent;
1121  uint8 sampleCount;
1122  int8 *iqSamples;
1124 
1126 typedef struct
1127 {
1130  uint8 status;
1131  uint16 connHandle;
1133 
1135 typedef struct
1136 {
1139  uint16 totalDataLen;
1140  uint8 eventIndex;
1141  uint16 connHandle;
1142  uint8 phy;
1143  uint8 dataChIndex;
1144  uint16 rssi;
1145  uint8 rssiAntenna;
1146  uint8 cteType;
1148  uint8 status;
1149  uint16 connEvent;
1150  uint8 dataLen;
1151  uint8 sampleRate;
1152  uint8 sampleSize;
1153  uint8 sampleCtrl;
1154  void *iqSamples;
1156 
1158 typedef struct
1159 {
1162  uint16 syncHandle;
1164  uint16 rssi;
1165  uint8 rssiAntenna;
1166  uint8 cteType;
1168  uint8 status;
1169  uint16 eventCounter;
1170  uint8 sampleCount;
1171  int8 *iqSamples;
1173 
1175 typedef struct
1176 {
1177  uint8 status;
1178  uint16 dataPktLen;
1179  uint8 numDataPkts;
1181 
1183 typedef struct
1184 {
1187  uint16 connHandle;
1188  uint8 chSelAlgo;
1190 
1192 typedef struct
1193 {
1195  uint8 *pData;
1196 } hciPacket_t;
1197 
1199 typedef struct
1200 {
1202  uint8 pktType;
1203  uint16 connHandle;
1204  uint8 pbFlag;
1205  uint16 pktLen;
1206  uint8 *pData;
1207 } hciDataPacket_t;
1208 
1210 
1211 // OSAL HCI_DATA_EVENT message format. This message is used to forward incoming
1212 // data messages up to an application
1213 typedef struct
1214 {
1215  osal_event_hdr_t hdr;
1216  uint16 connHandle;
1217  uint8 pbFlag;
1218  uint16 len;
1219  uint8 *pData;
1220 } hciDataEvent_t;
1221 
1223 
1224 #if defined( CC26XX ) || defined( CC13XX )
1225 PACKED_TYPEDEF_STRUCT
1226 #else // CC254x
1227 typedef struct
1228 #endif // CC26XX/CC13XX
1229 {
1230  uint8 connId;
1231  uint8 role;
1232  uint8 addr[LL_DEVICE_ADDR_LEN];
1233  uint8 addrType;
1234 } hciConnInfo_t;
1235 
1236 #if defined( CC26XX ) || defined( CC13XX )
1237 PACKED_TYPEDEF_STRUCT
1238 #else // CC254x
1239 typedef struct
1240 #endif // CC26XX/CC13XX
1241 {
1242  uint32_t accessAddr;
1243  uint16_t connInterval;
1244  uint8_t hopValue;
1245  uint16_t mSCA;
1246  uint8_t nextChan;
1247  uint8_t chanMap[LL_NUM_BYTES_FOR_CHAN_MAP];
1248  uint8_t crcInit[LL_PKT_CRC_LEN];
1249 }hciActiveConnInfo_t;
1250 
1251 #if defined( CC26XX ) || defined( CC13XX )
1252 PACKED_TYPEDEF_STRUCT
1253 #else // CC254x
1254 typedef struct
1255 #endif // CC26XX/CC13XX
1256 {
1257  uint16 numPkts;
1258  uint16 numCrcErr;
1259  uint16 numEvents;
1260  uint16 numMMissedEvents;
1261 } hciPER_t;
1262 
1265 /*
1266  * LOCAL VARIABLES
1267  */
1268 
1269 /*
1270  * GLOBAL VARIABLES
1271  */
1272 
1274 
1285 extern void *HCI_bm_alloc( uint16 size );
1286 
1300 extern uint8 HCI_ValidConnTimeParams( uint16 connIntervalMin,
1301  uint16 connIntervalMax,
1302  uint16 connLatency,
1303  uint16 connTimeout );
1304 
1310 extern void HCI_TestAppTaskRegister( uint8 taskID );
1311 
1317 extern void HCI_GAPTaskRegister( uint8 taskID );
1318 
1324 extern void HCI_L2CAPTaskRegister( uint8 taskID );
1325 
1331 extern void HCI_SMPTaskRegister( uint8 taskID );
1332 
1338 extern void HCI_ExtTaskRegister( uint8 taskID );
1339 
1364 extern hciStatus_t HCI_SendDataPkt( uint16 connHandle,
1365  uint8 pbFlag,
1366  uint16 pktLen,
1367  uint8 *pData );
1368 
1384 extern hciStatus_t HCI_DisconnectCmd( uint16 connHandle,
1385  uint8 reason );
1386 
1388 
1406 extern hciStatus_t HCI_ReadRemoteVersionInfoCmd( uint16 connHandle );
1407 
1408 
1422 extern hciStatus_t HCI_SetEventMaskCmd( uint8 *pMask );
1423 
1424 
1438 extern hciStatus_t HCI_SetEventMaskPage2Cmd( uint8 *pMask );
1439 
1448 extern hciStatus_t HCI_ResetCmd( void );
1449 
1461 extern hciStatus_t HCI_ReadTransmitPowerLevelCmd( uint16 connHandle,
1462  uint8 txPwrType );
1463 
1465 
1479 extern hciStatus_t HCI_SetControllerToHostFlowCtrlCmd( uint8 flowControlEnable );
1480 
1500 extern hciStatus_t HCI_HostBufferSizeCmd( uint16 hostAclPktLen,
1501  uint8 hostSyncPktLen,
1502  uint16 hostTotalNumAclPkts,
1503  uint16 hostTotalNumSyncPkts );
1504 
1506 
1535 extern hciStatus_t HCI_HostNumCompletedPktCmd( uint8 numHandles,
1536  uint16 *connHandles,
1537  uint16 *numCompletedPkts );
1538 
1550 extern hciStatus_t HCI_ReadAuthPayloadTimeoutCmd( uint16 connHandle,
1551  uint16 *aptoValue );
1552 
1564 extern hciStatus_t HCI_WriteAuthPayloadTimeoutCmd( uint16 connHandle,
1565  uint16 aptoValue );
1566 
1575 extern hciStatus_t HCI_ReadLocalVersionInfoCmd( void );
1576 
1585 extern hciStatus_t HCI_ReadLocalSupportedCommandsCmd( void );
1586 
1595 extern hciStatus_t HCI_ReadLocalSupportedFeaturesCmd( void );
1596 
1605 extern hciStatus_t HCI_ReadBDADDRCmd( void );
1606 
1623 extern hciStatus_t HCI_ReadRssiCmd( uint16 connHandle );
1624 
1638 extern hciStatus_t HCI_LE_SetEventMaskCmd( uint8 *pEventMask );
1639 
1648 extern hciStatus_t HCI_LE_ReadBufSizeCmd( void );
1649 
1659 extern hciStatus_t HCI_LE_ReadLocalSupportedFeaturesCmd( void );
1660 
1662 
1674 extern hciStatus_t HCI_LE_SetRandomAddressCmd( uint8 *pRandAddr );
1675 
1693 extern hciStatus_t HCI_LE_SetAdvParamCmd( uint16 advIntervalMin,
1694  uint16 advIntervalMax,
1695  uint8 advType,
1696  uint8 ownAddrType,
1697  uint8 directAddrType,
1698  uint8 *directAddr,
1699  uint8 advChannelMap,
1700  uint8 advFilterPolicy );
1701 
1713 extern hciStatus_t HCI_LE_SetAdvDataCmd( uint8 dataLen,
1714  uint8 *pData );
1715 
1727 extern hciStatus_t HCI_LE_SetScanRspDataCmd( uint8 dataLen,
1728  uint8 *pData );
1729 
1740 extern hciStatus_t HCI_LE_SetAdvEnableCmd( uint8 advEnable );
1741 
1750 extern hciStatus_t HCI_LE_ReadAdvChanTxPowerCmd( void );
1751 
1768 extern hciStatus_t HCI_LE_SetScanParamCmd( uint8 scanType,
1769  uint16 scanInterval,
1770  uint16 scanWindow,
1771  uint8 ownAddrType,
1772  uint8 filterPolicy );
1773 
1786 extern hciStatus_t HCI_LE_SetScanEnableCmd( uint8 scanEnable,
1787  uint8 filterDuplicates );
1788 
1813 extern hciStatus_t HCI_LE_CreateConnCmd( uint16 scanInterval,
1814  uint16 scanWindow,
1815  uint8 initFilterPolicy,
1816  uint8 addrTypePeer,
1817  uint8 *peerAddr,
1818  uint8 ownAddrType,
1819  uint16 connIntervalMin,
1820  uint16 connIntervalMax,
1821  uint16 connLatency,
1822  uint16 connTimeout,
1823  uint16 minLen,
1824  uint16 maxLen );
1825 
1834 extern hciStatus_t HCI_LE_CreateConnCancelCmd( void );
1835 
1837 
1846 extern hciStatus_t HCI_LE_ReadWhiteListSizeCmd( void );
1847 
1848 
1857 extern hciStatus_t HCI_LE_ClearWhiteListCmd( void );
1858 
1859 
1871 extern hciStatus_t HCI_LE_AddWhiteListCmd( uint8 addrType,
1872  uint8 *devAddr );
1873 
1874 
1886 extern hciStatus_t HCI_LE_RemoveWhiteListCmd( uint8 addrType,
1887  uint8 *devAddr );
1888 
1890 
1908 extern hciStatus_t HCI_LE_ConnUpdateCmd( uint16 connHandle,
1909  uint16 connIntervalMin,
1910  uint16 connIntervalMax,
1911  uint16 connLatency,
1912  uint16 connTimeout,
1913  uint16 minLen,
1914  uint16 maxLen );
1915 
1917 
1929 extern hciStatus_t HCI_LE_SetHostChanClassificationCmd( uint8 *chanMap );
1930 
1942 extern hciStatus_t HCI_LE_ReadChannelMapCmd( uint16 connHandle );
1943 
1956 extern hciStatus_t HCI_LE_ReadRemoteUsedFeaturesCmd( uint16 connHandle );
1957 
1978 extern hciStatus_t HCI_LE_EncryptCmd( uint8 *key,
1979  uint8 *plainText );
1980 
2003 extern hciStatus_t HCI_LE_RandCmd( void );
2004 
2006 
2022 extern hciStatus_t HCI_LE_StartEncyptCmd( uint16 connHandle,
2023  uint8 *random,
2024  uint8 *encDiv,
2025  uint8 *ltk );
2026 
2038 extern hciStatus_t HCI_LE_LtkReqReplyCmd( uint16 connHandle,
2039  uint8 *ltk );
2040 
2041 
2052 extern hciStatus_t HCI_LE_LtkReqNegReplyCmd( uint16 connHandle );
2053 
2055 
2064 extern hciStatus_t HCI_LE_ReadSupportedStatesCmd( void );
2065 
2078 extern hciStatus_t HCI_LE_ReceiverTestCmd( uint8 rxChan );
2079 
2096 extern hciStatus_t HCI_LE_TransmitterTestCmd( uint8 txChan,
2097  uint8 dataLen,
2098  uint8 pktPayload );
2099 
2110 extern hciStatus_t HCI_LE_TestEndCmd( void );
2111 
2112 // V4.1
2113 
2115 
2137 extern hciStatus_t HCI_LE_RemoteConnParamReqReplyCmd( uint16 connHandle,
2138  uint16 connIntervalMin,
2139  uint16 connIntervalMax,
2140  uint16 connLatency,
2141  uint16 connTimeout,
2142  uint16 minLen,
2143  uint16 maxLen );
2144 
2161 extern hciStatus_t HCI_LE_RemoteConnParamReqNegReplyCmd( uint16 connHandle,
2162  uint8 reason );
2163 
2165 
2166 // V4.2 Extended Data Length
2167 
2183 extern hciStatus_t HCI_LE_SetDataLenCmd( uint16 connHandle,
2184  uint16 txOctets,
2185  uint16 txTime );
2186 
2198 extern hciStatus_t HCI_LE_ReadSuggestedDefaultDataLenCmd( void );
2199 
2215 extern hciStatus_t HCI_LE_WriteSuggestedDefaultDataLenCmd( uint16 txOctets,
2216  uint16 txTime );
2217 
2229 extern hciStatus_t HCI_LE_ReadMaxDataLenCmd( void );
2230 
2231 // V4.2 Privacy 1.2
2232 
2249 extern hciStatus_t HCI_LE_AddDeviceToResolvingListCmd( uint8 peerIdAddrType,
2250  uint8 *peerIdAddr,
2251  uint8 *peerIRK,
2252  uint8 *localIRK );
2253 
2268 extern hciStatus_t HCI_LE_RemoveDeviceFromResolvingListCmd( uint8 peerIdAddrType,
2269  uint8 *peerIdAddr );
2270 
2282 extern hciStatus_t HCI_LE_ClearResolvingListCmd( void );
2283 
2295 extern hciStatus_t HCI_LE_ReadResolvingListSizeCmd( void );
2296 
2314 extern hciStatus_t HCI_LE_ReadPeerResolvableAddressCmd( uint8 peerIdAddrType,
2315  uint8 *peerIdAddr );
2316 
2335 extern hciStatus_t HCI_LE_ReadLocalResolvableAddressCmd( uint8 localIdAddrType,
2336  uint8 *localIdAddr );
2337 
2339 
2354 extern hciStatus_t HCI_LE_SetAddressResolutionEnableCmd( uint8 addrResolutionEnable );
2355 
2357 
2373 extern hciStatus_t HCI_LE_SetResolvablePrivateAddressTimeoutCmd( uint16 rpaTimeout );
2374 
2391 extern hciStatus_t HCI_LE_SetPrivacyModeCmd( uint8 peerIdAddrType,
2392  uint8 *peerIdAddr,
2393  uint8 privacyMode );
2394 
2395 // V4.2 Secure Connections
2396 
2398 
2414 extern hciStatus_t HCI_LE_ReadLocalP256PublicKeyCmd( void );
2415 
2416 
2435 extern hciStatus_t HCI_LE_GenerateDHKeyCmd( uint8 *publicKey );
2436 
2438 
2439 // V5.0 2M and Coded PHY
2440 
2456 extern hciStatus_t HCI_LE_ReadPhyCmd( uint16 connHandle );
2457 
2458 
2474 extern hciStatus_t HCI_LE_SetDefaultPhyCmd( uint8 allPhys,
2475  uint8 txPhy,
2476  uint8 rxPhy );
2477 
2478 
2493 extern hciStatus_t HCI_LE_SetPhyCmd( uint16 connHandle,
2494  uint8 allPhys,
2495  uint8 txPhy,
2496  uint8 rxPhy,
2497  uint16 phyOpts );
2498 
2499 
2515 extern hciStatus_t HCI_LE_EnhancedRxTestCmd( uint8 rxChan,
2516  uint8 rxPhy,
2517  uint8 modIndex );
2518 
2519 
2536 extern hciStatus_t HCI_LE_EnhancedTxTestCmd( uint8 txChan,
2537  uint8 payloadLen,
2538  uint8 payloadType,
2539  uint8 txPhy );
2560 extern hciStatus_t HCI_LE_EnhancedCteRxTestCmd( uint8 rxChan,
2561  uint8 rxPhy,
2562  uint8 modIndex,
2563  uint8 expectedCteLength,
2564  uint8 expectedCteType,
2565  uint8 slotDurations,
2566  uint8 length,
2567  uint8 *pAntenna);
2568 
2589 extern hciStatus_t HCI_LE_EnhancedCteTxTestCmd( uint8 txChan,
2590  uint8 payloadLen,
2591  uint8 payloadType,
2592  uint8 txPhy,
2593  uint8 cteLength,
2594  uint8 cteType,
2595  uint8 length,
2596  uint8 *pAntenna);
2605 extern hciStatus_t HCI_LE_ReadTxPowerCmd( void );
2606 
2615 extern hciStatus_t HCI_LE_ReadRfPathCompCmd( void );
2616 
2628 extern hciStatus_t HCI_LE_WriteRfPathCompCmd( int16 txPathParam,
2629  int16 rxPathParam );
2630 
2649 extern hciStatus_t HCI_LE_SetConnectionCteReceiveParamsCmd( uint16 connHandle,
2650  uint8 samplingEnable,
2651  uint8 slotDurations,
2652  uint8 length,
2653  uint8 *pAntenna);
2654 
2655 
2672 extern hciStatus_t HCI_LE_SetConnectionCteTransmitParamsCmd( uint16 connHandle,
2673  uint8 types,
2674  uint8 length,
2675  uint8 *pAntenna);
2676 
2693 extern hciStatus_t HCI_LE_SetConnectionCteRequestEnableCmd( uint16 connHandle,
2694  uint8 enable,
2695  uint16 interval,
2696  uint8 length,
2697  uint8 type);
2698 
2712 extern hciStatus_t HCI_LE_SetConnectionCteResponseEnableCmd( uint16 connHandle,
2713  uint8 enable);
2714 
2725 extern hciStatus_t HCI_LE_ReadAntennaInformationCmd( void );
2726 
2727 /*
2728 ** HCI Vendor Specific Commands: Link Layer Extensions
2729 */
2730 
2743 extern hciStatus_t HCI_EXT_SetRxGainCmd( uint8 rxGain );
2744 
2745 
2763 extern hciStatus_t HCI_EXT_SetTxPowerCmd( uint8 txPower );
2764 
2765 
2778 extern hciStatus_t HCI_EXT_OnePktPerEvtCmd( uint8 control );
2779 
2781 
2800 extern hciStatus_t HCI_EXT_ClkDivOnHaltCmd( uint8 control );
2801 
2823 extern hciStatus_t HCI_EXT_DeclareNvUsageCmd( uint8 mode );
2824 
2826 
2840 extern hciStatus_t HCI_EXT_DecryptCmd( uint8 *key,
2841  uint8 *encText );
2842 
2865 extern hciStatus_t HCI_EXT_SetLocalSupportedFeaturesCmd( uint8 *localFeatures );
2866 
2892 extern hciStatus_t HCI_EXT_SetFastTxResponseTimeCmd( uint8 control );
2893 
2894 
2913 extern hciStatus_t HCI_EXT_SetSlaveLatencyOverrideCmd( uint8 control );
2914 
2915 
2939 extern hciStatus_t HCI_EXT_ModemTestTxCmd( uint8 cwMode,
2940  uint8 txChan );
2941 
2963 extern hciStatus_t HCI_EXT_ModemHopTestTxCmd( void );
2964 
2987 extern hciStatus_t HCI_EXT_ModemTestRxCmd( uint8 rxChan );
2988 
3013 extern hciStatus_t HCI_EXT_EnhancedModemTestTxCmd( uint8 cwMode,
3014  uint8 rfPhy,
3015  uint8 rfChan );
3016 
3044 extern hciStatus_t HCI_EXT_EnhancedModemHopTestTxCmd( uint8 payloadLen,
3045  uint8 payloadType,
3046  uint8 rfPhy );
3047 
3071 extern hciStatus_t HCI_EXT_EnhancedModemTestRxCmd( uint8 rfPhy,
3072  uint8 rfChan );
3073 
3084 extern hciStatus_t HCI_EXT_EndModemTestCmd( void );
3085 
3087 
3110 extern hciStatus_t HCI_EXT_SetBDADDRCmd( uint8 *bdAddr );
3111 
3113 
3139 extern hciStatus_t HCI_EXT_SetSCACmd( uint16 scaInPPM );
3140 
3156 extern hciStatus_t HCI_EXT_EnablePTMCmd( void );
3157 
3177 extern hciStatus_t HCI_EXT_SetFreqTuneCmd( uint8 step );
3178 
3193 extern hciStatus_t HCI_EXT_SaveFreqTuneCmd( void );
3194 
3215 extern hciStatus_t HCI_EXT_SetMaxDtmTxPowerCmd( uint8 txPower );
3216 
3218 
3258 extern hciStatus_t HCI_EXT_MapPmIoPortCmd( uint8 ioPort, uint8 ioPin );
3259 
3261 
3277 extern hciStatus_t HCI_EXT_DisconnectImmedCmd( uint16 connHandle );
3278 
3297 extern hciStatus_t HCI_EXT_PacketErrorRateCmd( uint16 connHandle, uint8 command );
3298 
3340 extern hciStatus_t HCI_EXT_PERbyChanCmd( uint16 connHandle, perByChan_t *perByChan );
3341 
3343 
3352 extern hciStatus_t HCI_EXT_ExtendRfRangeCmd( void );
3353 
3366 extern hciStatus_t HCI_EXT_HaltDuringRfCmd( uint8 mode );
3367 
3369 
3371 
3425 extern hciStatus_t HCI_EXT_AdvEventNoticeCmd( uint8 taskID, uint16 taskEvent );
3426 
3428 
3483 extern hciStatus_t HCI_EXT_ConnEventNoticeCmd( uint16 connHandle, uint8 taskID, uint16 taskEvent );
3484 
3506 extern hciStatus_t HCI_EXT_BuildRevisionCmd( uint8 mode, uint16 userRevNum );
3507 
3509 
3541 extern hciStatus_t HCI_EXT_DelaySleepCmd( uint16 delay );
3542 
3544 
3563 extern hciStatus_t HCI_EXT_ResetSystemCmd( uint8 mode );
3564 
3565 // @cond NODOC
3566 
3577 extern hciStatus_t HCI_EXT_LLTestModeCmd( uint8 testCase );
3578 
3579 
3590 extern hciStatus_t HCI_EXT_OverlappedProcessingCmd( uint8 mode );
3591 
3593 
3614 extern hciStatus_t HCI_EXT_NumComplPktsLimitCmd( uint8 limit,
3615  uint8 flushOnEvt );
3616 
3618 
3651 extern hciStatus_t HCI_EXT_GetConnInfoCmd( uint8 *numAllocConns,
3652  uint8 *numActiveConns,
3653  hciConnInfo_t *activeConnInfo );
3654 
3656 
3673 extern hciStatus_t HCI_EXT_SetMaxDataLenCmd( uint16 txOctets,
3674  uint16 txTime,
3675  uint16 rxOctets,
3676  uint16 rxTime );
3677 
3690 extern hciStatus_t HCI_EXT_SetDtmTxPktCntCmd( uint16 txPktCnt );
3691 
3693 
3702 extern hciStatus_t HCI_EXT_ReadRandAddrCmd( void );
3703 
3704 
3716 extern hciStatus_t HCI_EXT_SetPinOutputCmd( uint8 dio,
3717  uint8 value );
3718 
3741 extern hciStatus_t HCI_EXT_SetLocationingAccuracyCmd( uint16 connHandle,
3742  uint8 sampleRate1M,
3743  uint8 sampleSize1M,
3744  uint8 sampleRate2M,
3745  uint8 sampleSize2M,
3746  uint8 sampleCtrl);
3747 
3769 extern hciStatus_t HCI_EXT_GetActiveConnInfoCmd( uint8 connId, hciActiveConnInfo_t *activeConnInfo );
3770 
3771 
3793 extern hciStatus_t HCI_EXT_SetVirtualAdvAddrCmd( uint8 advHandle, uint8 *bdAddr );
3794 
3818 extern hciStatus_t HCI_EXT_SetExtScanChannels( uint8 extScanChannelsMap );
3819 
3830 extern hciStatus_t HCI_EXT_CoexEnableCmd( uint8 enable );
3831 
3833 
3834 #ifdef __cplusplus
3835 }
3836 #endif
3837 
3838 #endif /* HCI_H */
3839 
hciStatus_t HCI_EXT_PacketErrorRateCmd(uint16 connHandle, uint8 command)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1026
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1129
uint8 status
packet status (success or CRC error)
Definition: hci.h:1119
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:949
uint8 sampleCount
number of samples
Definition: hci.h:1121
uint8 status
status of event
Definition: hci.h:962
hciStatus_t HCI_LE_EnhancedCteTxTestCmd(uint8 txChan, uint8 payloadLen, uint8 payloadType, uint8 txPhy, uint8 cteLength, uint8 cteType, uint8 length, uint8 *pAntenna)
This API allows the software components in the Z-Stack to be written independently of the specifics o...
uint8 eventType
scan request event type
Definition: hci.h:928
uint16 * pNumCompletedPackets
pointer to the number of completed packets array
Definition: hci.h:993
hciStatus_t HCI_EXT_SetMaxDataLenCmd(uint16 txOctets, uint16 txTime, uint16 rxOctets, uint16 rxTime)
uint16 connHandle
connection handle
Definition: hci.h:1082
uint8 status
status of event
Definition: hci.h:950
uint8 status
status of event
Definition: hci.h:1071
uint8 phy
current phy
Definition: hci.h:1113
uint8 addrType
public or random address type
Definition: hci.h:907
uint8 pktType
packet type
Definition: hci.h:1202
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:971
uint8 clockAccuracy
connection clock accuracy
Definition: hci.h:890
uint16 rssi
current rssi
Definition: hci.h:1164
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1185
uint16 Interval_Min
minimum connection interval
Definition: hci.h:1060
hciStatus_t HCI_LE_SetDefaultPhyCmd(uint8 allPhys, uint8 txPhy, uint8 rxPhy)
HCI Packet event.
Definition: hci.h:1192
osal_event_hdr_t hdr
osal event header
Definition: hci.h:980
#define B_RANDOM_NUM_SIZE
BLE Random Number Size.
Definition: bcomdef.h:133
uint8 numHandles
number of handles
Definition: hci.h:991
uint8 * pReturnParam
pointer to the return parameter
Definition: hci.h:1002
hciStatus_t HCI_LE_SetConnectionCteTransmitParamsCmd(uint16 connHandle, uint8 types, uint8 length, uint8 *pAntenna)
hciStatus_t HCI_LE_ReadRemoteUsedFeaturesCmd(uint16 connHandle)
LE CTE Connectionless IQ Report Event.
Definition: hci.h:1158
osal_event_hdr_t hdr
osal event header
Definition: hci.h:970
uint16 dataPktLen
data packet length
Definition: hci.h:1178
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:939
uint16 rssi
current rssi
Definition: hci.h:1115
Command Status Event.
Definition: hci.h:1015
void * iqSamples
list of interleaved I/Q samples (list size is dataLen*2)
Definition: hci.h:1154
uint16 connHandle
connection handle
Definition: hci.h:1072
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1080
osal_event_hdr_t hdr
osal event header
Definition: hci.h:926
hciStatus_t HCI_LE_TestEndCmd(void)
hciStatus_t HCI_LE_SetResolvablePrivateAddressTimeoutCmd(uint16 rpaTimeout)
hciStatus_t HCI_EXT_SetMaxDtmTxPowerCmd(uint8 txPower)
Hardware Error Event.
Definition: hci.h:1024
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:885
uint16 connHandle
connection handle
Definition: hci.h:1131
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1111
uint8 status
status of event
Definition: hci.h:1034
hciStatus_t HCI_LE_RandCmd(void)
LE Advertising Report Event.
Definition: hci.h:904
uint8 sampleCount
number of samples
Definition: hci.h:1170
uint8 dataChIndex
index of data channel
Definition: hci.h:1114
hciStatus_t HCI_LE_ReadRfPathCompCmd(void)
#define B_MAX_ADV_LEN
BLE Maximum Advertising Packet Length.
Definition: bcomdef.h:130
uint8 nextDataChan
next channel
Definition: hci.h:941
uint8 dataChIndex
index of data channel
Definition: hci.h:1143
hciStatus_t HCI_LE_ReadResolvingListSizeCmd(void)
uint8 cteType
cte type
Definition: hci.h:1146
LE CTE Connection IQ Report Event.
Definition: hci.h:1108
LE Data Length Change Event.
Definition: hci.h:1078
hciStatus_t HCI_SetEventMaskPage2Cmd(uint8 *pMask)
hciStatus_t HCI_LE_ReadLocalSupportedFeaturesCmd(void)
uint8 numDevices
number of discovered devices
Definition: hci.h:919
uint16 syncHandle
sync handle in periodic adv
Definition: hci.h:1162
uint16 connectionHandle
connection handle
Definition: hci.h:867
uint16 connHandle
connection handle
Definition: hci.h:1203
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1081
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:960
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:1067
uint16 connEvent
connection event
Definition: hci.h:1149
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1049
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1128
osal_event_hdr_t hdr
osal event header
Definition: hci.h:990
uint8 status
packet status (success or CRC error)
Definition: hci.h:1148
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1057
hciStatus_t HCI_LE_EnhancedRxTestCmd(uint8 rxChan, uint8 rxPhy, uint8 modIndex)
uint8 rssiAntenna
antenna ID
Definition: hci.h:1116
hciStatus_t HCI_LE_ReadAntennaInformationCmd(void)
uint8 BLEEventCode
BLE Event code.
Definition: hci.h:1093
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1008
hciStatus_t HCI_WriteAuthPayloadTimeoutCmd(uint16 connHandle, uint16 aptoValue)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1033
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1167
hciStatus_t HCI_LE_SetHostChanClassificationCmd(uint8 *chanMap)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1102
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1160
union _hciEvt_BLEConnComplete_u_ hciEvt_BLEConnComplete_u
LE Connection Complete Event.
uint16 connInterval
connection interval
Definition: hci.h:871
uint16 Interval_Max
maximum connection interval
Definition: hci.h:1061
uint8 length
length of parametric data, in bytes
Definition: hci.h:1009
hciStatus_t HCI_EXT_NumComplPktsLimitCmd(uint8 limit, uint8 flushOnEvt)
uint16 connectionHandle
connection handle
Definition: hci.h:963
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1070
uint16 maxRxTime
maximum receive time
Definition: hci.h:1086
hciStatus_t HCI_ReadRssiCmd(uint16 connHandle)
uint8 status
status
Definition: hci.h:1094
uint16 connectionHandle
connection handle
Definition: hci.h:883
uint8 sampleSize
sample size (8 or 16 bit)
Definition: hci.h:1152
uint16 connTimeout
connection supervision timeout
Definition: hci.h:954
uint8 encEnable
encryption enabled or not
Definition: hci.h:974
uint8 eventIndex
event number
Definition: hci.h:1140
uint16 Latency
slave latency
Definition: hci.h:1062
hciStatus_t HCI_LE_ReadSupportedStatesCmd(void)
uint16 connLatency
connection latency
Definition: hci.h:888
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1147
uint8 linkType
synchronous or asynchronous buffer overflow
Definition: hci.h:1043
Vendor Specific Command Complete Event.
Definition: hci.h:1006
osal_event_hdr_t hdr
osal event header
Definition: hci.h:948
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:1175
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1118
hciStatus_t HCI_LE_EnhancedTxTestCmd(uint8 txChan, uint8 payloadLen, uint8 payloadType, uint8 txPhy)
hciStatus_t HCI_SetEventMaskCmd(uint8 *pMask)
hciStatus_t HCI_LE_AddWhiteListCmd(uint8 addrType, uint8 *devAddr)
uint8 clockAccuracy
connection clock accuracy
Definition: hci.h:874
Disconnection Complete Event.
Definition: hci.h:1031
hciStatus_t HCI_EXT_SaveFreqTuneCmd(void)
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:1201
Authenticated Payload Timeout Expired Event.
Definition: hci.h:1047
hciStatus_t HCI_EXT_EnhancedModemTestTxCmd(uint8 cwMode, uint8 rfPhy, uint8 rfChan)
hciStatus_t HCI_LE_ReadWhiteListSizeCmd(void)
uint16 connHandle
connection handle
Definition: hci.h:1059
uint16 maxTxTime
maximum transmission time
Definition: hci.h:1084
hciStatus_t HCI_LE_SetEventMaskCmd(uint8 *pEventMask)
int8 rssi
report RSSI
Definition: hci.h:911
uint16 connLatency
connection latency
Definition: hci.h:953
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:918
uint8 * pData
data
Definition: hci.h:1206
hciStatus_t HCI_EXT_SetRxGainCmd(uint8 rxGain)
uint8 reason
reason
Definition: hci.h:973
int8 rssi
report RSSI
Definition: hci.h:932
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:981
uint16 cmdOpcode
command opcode
Definition: hci.h:1020
uint8 chSelAlgo
channel selection algorithm
Definition: hci.h:1188
LE CTE Request Failed Event.
Definition: hci.h:1126
hciStatus_t HCI_ReadRemoteVersionInfoCmd(uint16 connHandle)
osal_event_hdr_t hdr
OSAL event header.
Definition: hci.h:1194
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:1138
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1092
hciStatus_t HCI_EXT_ModemHopTestTxCmd(void)
Command Complete Event.
Definition: hci.h:997
uint8 rxPhy
RX PHY.
Definition: hci.h:1074
hciEvt_DevInfo_t * devInfo
pointer to the array of devInfo
Definition: hci.h:920
LE Channel Selection Algorithm Event.
Definition: hci.h:1183
uint16 connHandle
connection handle
Definition: hci.h:972
HCI Data Packet.
Definition: hci.h:1199
uint8 status
status
Definition: hci.h:1103
uint8 status
status of event
Definition: hci.h:866
uint16 connTimeout
connection supervision timeout
Definition: hci.h:889
uint16 Timeout
supervision timeout
Definition: hci.h:1063
LE Generate DHKey Complete Event.
Definition: hci.h:1099
hciStatus_t HCI_EXT_EnhancedModemHopTestTxCmd(uint8 payloadLen, uint8 payloadType, uint8 rfPhy)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1137
uint16 * pConnectionHandle
pointer to the connection handle array
Definition: hci.h:992
LE Remote Connection Parameter Request Event.
Definition: hci.h:1054
hciStatus_t HCI_EXT_PERbyChanCmd(uint16 connHandle, perByChan_t *perByChan)
uint16 connEvent
connection event
Definition: hci.h:1120
uint16 connLatency
connection latency
Definition: hci.h:872
uint8 status
status of event
Definition: hci.h:1058
hciStatus_t HCI_ReadLocalSupportedCommandsCmd(void)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:927
hciStatus_t HCI_EXT_ModemTestRxCmd(uint8 rxChan)
uint16 connInterval
connection interval
Definition: hci.h:887
uint8 bleChan
BLE channel.
Definition: hci.h:931
uint8 eventType
advertisement or scan response event type
Definition: hci.h:906
osal_event_hdr_t hdr
osal event header
Definition: hci.h:864
hciEvt_BLEEnhConnComplete_t enhEvt
enhanced connection complete event
Definition: hci.h:900
int8 * iqSamples
list of interleaved I/Q samples
Definition: hci.h:1171
uint16 connHandle
connection handle
Definition: hci.h:1141
osal_event_hdr_t hdr
osal event header
Definition: hci.h:880
hciStatus_t HCI_LE_ClearResolvingListCmd(void)
hciStatus_t HCI_EXT_SetSlaveLatencyOverrideCmd(uint8 control)
hciStatus_t HCI_EXT_OnePktPerEvtCmd(uint8 control)
uint16 connTimeout
connection supervision timeout
Definition: hci.h:873
Type definitions and macros for BLE stack.
VS LE Scan Request Report Event.
Definition: hci.h:924
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1110
hciStatus_t HCI_EXT_SetFastTxResponseTimeCmd(uint8 control)
LE Encryption Change Event.
Definition: hci.h:968
hciStatus_t HCI_EXT_BuildRevisionCmd(uint8 mode, uint16 userRevNum)
hciStatus_t HCI_LE_ReadPhyCmd(uint16 connHandle)
uint16 connInterval
connection interval
Definition: hci.h:952
uint8 phy
current phy
Definition: hci.h:1142
uint8 * pEventParam
event parameters
Definition: hci.h:1011
uint8 channelIndex
index of channel
Definition: hci.h:1163
hciEvt_BLEConnComplete_t legEvt
connection complete event
Definition: hci.h:899
hciStatus_t HCI_ReadTransmitPowerLevelCmd(uint16 connHandle, uint8 txPwrType)
uint8 cmdStatus
command status
Definition: hci.h:1018
LE Enhanced Connection Complete Event.
Definition: hci.h:878
hciStatus_t HCI_LE_SetPhyCmd(uint16 connHandle, uint8 allPhys, uint8 txPhy, uint8 rxPhy, uint16 phyOpts)
uint16 connHandle
connection handle
Definition: hci.h:1050
uint16 cmdOpcode
command opcode
Definition: hci.h:1001
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:865
Number of Completed Packets Event.
Definition: hci.h:988
hciStatus_t HCI_LE_ReadPeerResolvableAddressCmd(uint8 peerIdAddrType, uint8 *peerIdAddr)
OSAL Event Header.
Definition: osal.h:92
hciStatus_t HCI_EXT_SetLocalSupportedFeaturesCmd(uint8 *localFeatures)
hciStatus_t HCI_LE_ReceiverTestCmd(uint8 rxChan)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:881
uint8 txPhy
TX PHY.
Definition: hci.h:1073
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:1179
uint16 connHandle
connection handle
Definition: hci.h:940
hciStatus_t HCI_EXT_EnhancedModemTestRxCmd(uint8 rfPhy, uint8 rfChan)
uint16 pktLen
packet length
Definition: hci.h:1205
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1101
uint8 peerAddrType
peer address type
Definition: hci.h:869
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1017
hciStatus_t HCI_EXT_ConnEventNoticeCmd(uint16 connHandle, uint8 taskID, uint16 taskEvent)
uint16 cmdOpcode
command opcode
Definition: hci.h:1010
uint8 reason
reason
Definition: hci.h:1036
uint8 numHciCmdPkt
number of HCI Command Packet
Definition: hci.h:1000
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1056
LE Extended CTE Connection IQ Report Event.
Definition: hci.h:1135
uint8 hardwareCode
hardware error code
Definition: hci.h:1027
#define B_ADDR_LEN
Default Public and Random Address Length.
Definition: bcomdef.h:108
Data Buffer Overflow Event.
Definition: hci.h:1040
uint8 role
role of connection
Definition: hci.h:884
LE Connection Complete Event.
Definition: hci.h:862
uint8 numHciCmdPkt
number of HCI command packets
Definition: hci.h:1019
uint16 encryptedDiversifier
encrypted diversifier
Definition: hci.h:984
int8 * iqSamples
list of interleaved I/Q samples
Definition: hci.h:1122
hciStatus_t HCI_LE_AddDeviceToResolvingListCmd(uint8 peerIdAddrType, uint8 *peerIdAddr, uint8 *peerIRK, uint8 *localIRK)
LE Read Remote Used Features Complete Event.
Definition: hci.h:958
uint16 eventCounter
periodic adv event counter
Definition: hci.h:1169
uint8 peerAddrType
peer address type
Definition: hci.h:929
uint16 totalDataLen
samples data length includes in all next events
Definition: hci.h:1139
VS LE Channel Map Update Event.
Definition: hci.h:936
hciStatus_t HCI_ReadLocalSupportedFeaturesCmd(void)
uint8 sampleRate
sample rate (1/2/3/4 MHz)
Definition: hci.h:1151
hciStatus_t HCI_LE_ReadChannelMapCmd(uint16 connHandle)
uint16 connHandle
connection handle
Definition: hci.h:1187
uint8 status
status of event
Definition: hci.h:1177
osal_event_hdr_t hdr
osal event header
Definition: hci.h:938
hciStatus_t HCI_LE_ClearWhiteListCmd(void)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:999
hciStatus_t HCI_LE_ReadMaxDataLenCmd(void)
hciStatus_t HCI_EXT_SetSCACmd(uint16 scaInPPM)
uint16 connHandle
connection handle
Definition: hci.h:1112
uint8 cteType
cte type
Definition: hci.h:1117
uint16 maxTxOctets
maximum transmission bytes
Definition: hci.h:1083
uint16 rssi
current rssi
Definition: hci.h:1144
hciStatus_t HCI_ReadBDADDRCmd(void)
uint8 status
packet status (success or CRC error)
Definition: hci.h:1168
uint8 rssiAntenna
antenna ID
Definition: hci.h:1145
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1069
hciStatus_t HCI_HostNumCompletedPktCmd(uint8 numHandles, uint16 *connHandles, uint16 *numCompletedPkts)
hciStatus_t HCI_ReadAuthPayloadTimeoutCmd(uint16 connHandle, uint16 *aptoValue)
LE Connection Complete Event.
Definition: hci.h:897
hciStatus_t HCI_LE_SetConnectionCteResponseEnableCmd(uint16 connHandle, uint8 enable)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1161
LE Connection Update Complete Event.
Definition: hci.h:946
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1186
hciStatus_t HCI_EXT_SetTxPowerCmd(uint8 txPower)
uint8 status
status of event
Definition: hci.h:882
hciStatus_t HCI_LE_WriteSuggestedDefaultDataLenCmd(uint16 txOctets, uint16 txTime)
LE Read P256 Public Key Complete Event.
Definition: hci.h:1090
uint8 dataLen
length of report data
Definition: hci.h:909
uint8 dataLen
samples data length
Definition: hci.h:1150
uint8 status
status
Definition: hci.h:1130
uint8 * pData
data
Definition: hci.h:1195
uint8 cteType
cte type
Definition: hci.h:1166
LE Advertising Packet Report Event.
Definition: hci.h:915
uint8 rssiAntenna
antenna ID
Definition: hci.h:1165
hciStatus_t HCI_EXT_DisconnectImmedCmd(uint16 connHandle)
uint16 connHandle
connection handle
Definition: hci.h:1035
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:961
hciStatus_t HCI_LE_WriteRfPathCompCmd(int16 txPathParam, int16 rxPathParam)
uint8 pbFlag
flag
Definition: hci.h:1204
uint16 maxRxOctets
maximum receive bytes
Definition: hci.h:1085
uint8 role
role of connection
Definition: hci.h:868
hciStatus_t HCI_ResetCmd(void)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1042
hciStatus_t HCI_LE_SetPrivacyModeCmd(uint8 peerIdAddrType, uint8 *peerIdAddr, uint8 privacyMode)
uint16 connectionHandle
connection handle
Definition: hci.h:951
LE Long Term Key Requested Event.
Definition: hci.h:978
osal_event_hdr_t hdr
osal event header
Definition: hci.h:917
uint8 sampleCtrl
sample control - default filtering or RAW_RF
Definition: hci.h:1153
uint16 connHandle
connection handle
Definition: hci.h:982
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale