TI BLE5-Stack API Documentation  2.01.01.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 
318 #ifndef HCI_H
319 #define HCI_H
320 
321 #ifdef __cplusplus
322 extern "C"
323 {
324 #endif
325 
326 /*
327  * INCLUDES
328  */
329 #include "bcomdef.h"
330 #include "osal.h"
331 #include "ll_common.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 #define HCI_EXT_TX_POWER_14_DBM LL_EXT_TX_POWER_14_DBM
662 #define HCI_EXT_TX_POWER_15_DBM LL_EXT_TX_POWER_15_DBM
663 #define HCI_EXT_TX_POWER_16_DBM LL_EXT_TX_POWER_16_DBM
664 #define HCI_EXT_TX_POWER_17_DBM LL_EXT_TX_POWER_17_DBM
665 #define HCI_EXT_TX_POWER_18_DBM LL_EXT_TX_POWER_18_DBM
666 #define HCI_EXT_TX_POWER_19_DBM LL_EXT_TX_POWER_19_DBM
667 #define HCI_EXT_TX_POWER_20_DBM LL_EXT_TX_POWER_20_DBM
668 #else // CC254x
669 #define HCI_EXT_TX_POWER_MINUS_23_DBM LL_EXT_TX_POWER_MINUS_23_DBM
670 #define HCI_EXT_TX_POWER_MINUS_6_DBM LL_EXT_TX_POWER_MINUS_6_DBM
671 #define HCI_EXT_TX_POWER_0_DBM LL_EXT_TX_POWER_0_DBM
672 #define HCI_EXT_TX_POWER_4_DBM LL_EXT_TX_POWER_4_DBM
673 #endif // CC26XX/CC13XX
674 
680 #define HCI_EXT_ENABLE_ONE_PKT_PER_EVT LL_EXT_ENABLE_ONE_PKT_PER_EVT
681 #define HCI_EXT_DISABLE_ONE_PKT_PER_EVT LL_EXT_DISABLE_ONE_PKT_PER_EVT
682 
684 
686 
690 #define HCI_EXT_ENABLE_CLK_DIVIDE_ON_HALT LL_EXT_ENABLE_CLK_DIVIDE_ON_HALT
691 #define HCI_EXT_DISABLE_CLK_DIVIDE_ON_HALT LL_EXT_DISABLE_CLK_DIVIDE_ON_HALT
692 
694 
696 
700 #define HCI_EXT_NV_IN_USE LL_EXT_NV_IN_USE
701 #define HCI_EXT_NV_NOT_IN_USE LL_EXT_NV_NOT_IN_USE
702 
708 #define HCI_EXT_ENABLE_FAST_TX_RESP_TIME LL_EXT_ENABLE_FAST_TX_RESP_TIME
709 #define HCI_EXT_DISABLE_FAST_TX_RESP_TIME LL_EXT_DISABLE_FAST_TX_RESP_TIME
710 
716 #define HCI_EXT_ENABLE_SL_OVERRIDE LL_EXT_ENABLE_SL_OVERRIDE
717 #define HCI_EXT_DISABLE_SL_OVERRIDE LL_EXT_DISABLE_SL_OVERRIDE
718 
724 #define HCI_EXT_TX_MODULATED_CARRIER LL_EXT_TX_MODULATED_CARRIER
725 #define HCI_EXT_TX_UNMODULATED_CARRIER LL_EXT_TX_UNMODULATED_CARRIER
726 
732 #define HCI_PTM_SET_FREQ_TUNE_DOWN LL_EXT_SET_FREQ_TUNE_DOWN
733 #define HCI_PTM_SET_FREQ_TUNE_UP LL_EXT_SET_FREQ_TUNE_UP
734 
736 
738 
742 #define HCI_EXT_PM_IO_PORT_P0 LL_EXT_PM_IO_PORT_P0
743 #define HCI_EXT_PM_IO_PORT_P1 LL_EXT_PM_IO_PORT_P1
744 #define HCI_EXT_PM_IO_PORT_P2 LL_EXT_PM_IO_PORT_P2
745 #define HCI_EXT_PM_IO_PORT_NONE LL_EXT_PM_IO_PORT_NONE
746 
747 #define HCI_EXT_PM_IO_PORT_PIN0 LL_EXT_PM_IO_PORT_PIN0
748 #define HCI_EXT_PM_IO_PORT_PIN1 LL_EXT_PM_IO_PORT_PIN1
749 #define HCI_EXT_PM_IO_PORT_PIN2 LL_EXT_PM_IO_PORT_PIN2
750 #define HCI_EXT_PM_IO_PORT_PIN3 LL_EXT_PM_IO_PORT_PIN3
751 #define HCI_EXT_PM_IO_PORT_PIN4 LL_EXT_PM_IO_PORT_PIN4
752 #define HCI_EXT_PM_IO_PORT_PIN5 LL_EXT_PM_IO_PORT_PIN5
753 #define HCI_EXT_PM_IO_PORT_PIN6 LL_EXT_PM_IO_PORT_PIN6
754 #define HCI_EXT_PM_IO_PORT_PIN7 LL_EXT_PM_IO_PORT_PIN7
755 
757 
763 #define HCI_EXT_PER_RESET LL_EXT_PER_RESET
764 #define HCI_EXT_PER_READ LL_EXT_PER_READ
765 
767 
769 
773 #define HCI_EXT_HALT_DURING_RF_DISABLE LL_EXT_HALT_DURING_RF_DISABLE
774 #define HCI_EXT_HALT_DURING_RF_ENABLE LL_EXT_HALT_DURING_RF_ENABLE
775 
777 
779 
783 #define HCI_EXT_SET_USER_REVISION LL_EXT_SET_USER_REVISION
784 #define HCI_EXT_READ_BUILD_REVISION LL_EXT_READ_BUILD_REVISION
785 
791 #define HCI_EXT_RESET_SYSTEM_HARD LL_EXT_RESET_SYSTEM_HARD
792 #define HCI_EXT_RESET_SYSTEM_SOFT LL_EXT_RESET_SYSTEM_SOFT
793 
795 
797 
801 #define HCI_EXT_DISABLE_OVERLAPPED_PROCESSING LL_EXT_DISABLE_OVERLAPPED_PROCESSING
802 #define HCI_EXT_ENABLE_OVERLAPPED_PROCESSING LL_EXT_ENABLE_OVERLAPPED_PROCESSING
803 
805 
807 
811 #define HCI_EXT_DISABLE_NUM_COMPL_PKTS_ON_EVENT LL_EXT_DISABLE_NUM_COMPL_PKTS_ON_EVENT
812 #define HCI_EXT_ENABLE_NUM_COMPL_PKTS_ON_EVENT LL_EXT_ENABLE_NUM_COMPL_PKTS_ON_EVENT
813 
819 #define HCI_EXT_DISABLE_SCAN_REQUEST_REPORT LL_EXT_DISABLE_SCAN_REQUEST_REPORT
820 #define HCI_EXT_ENABLE_SCAN_REQUEST_REPORT LL_EXT_ENABLE_SCAN_REQUEST_REPORT
821 
831 #define HCI_LINK_TYPE_SCO_BUFFER_OVERFLOW 0
832 #define HCI_LINK_TYPE_ACL_BUFFER_OVERFLOW 1
833 
841 #define HCI_EXT_RF_SETUP_1M_PHY LL_EXT_RF_SETUP_1M_PHY
842 #define HCI_EXT_RF_SETUP_2M_PHY LL_EXT_RF_SETUP_2M_PHY
843 #define HCI_EXT_RF_SETUP_CODED_S8_PHY LL_EXT_RF_SETUP_CODED_S8_PHY
844 #define HCI_EXT_RF_SETUP_CODED_S2_PHY LL_EXT_RF_SETUP_CODED_S2_PHY
845 
849 /*
850  * TYPEDEFS
851  */
852 
854 typedef uint8 hciStatus_t;
856 
862 typedef struct
864 {
866  uint8 BLEEventCode;
867  uint8 status;
869  uint8 role;
870  uint8 peerAddrType;
871  uint8 peerAddr[B_ADDR_LEN];
872  uint16 connInterval;
873  uint16 connLatency;
874  uint16 connTimeout;
877 
879 typedef struct
880 {
882  uint8 BLEEventCode;
883  uint8 status;
885  uint8 role;
886  uint8 peerAddrType;
887  uint8 peerAddr[B_ADDR_LEN];
888  uint16 connInterval;
889  uint16 connLatency;
890  uint16 connTimeout;
892  // Note: These fields normally follow peerAddr. Put here for Host optimization.
893  uint8 localRPA[B_ADDR_LEN];
894  uint8 peerRPA[B_ADDR_LEN];
896 
899 {
903 
905 typedef struct
906 {
907  uint8 eventType;
908  uint8 addrType;
909  uint8 addr[B_ADDR_LEN];
910  uint8 dataLen;
911  uint8 rspData[B_MAX_ADV_LEN];
912  int8 rssi;
914 
916 typedef struct
917 {
919  uint8 BLEEventCode;
920  uint8 numDevices;
923 
925 typedef struct
926 {
928  uint8 BLEEventCode;
929  uint8 eventType;
930  uint8 peerAddrType;
931  uint8 peerAddr[B_ADDR_LEN];
932  uint8 bleChan;
933  int8 rssi;
935 
937 typedef struct
938 {
940  uint8 BLEEventCode;
941  uint8 status;
943  uint16 connInterval;
944  uint16 connLatency;
945  uint16 connTimeout;
947 
949 typedef struct
950 {
952  uint8 BLEEventCode;
953  uint8 status;
955  uint8 features[8];
957 
959 typedef struct
960 {
962  uint8 BLEEventCode;
963  uint16 connHandle;
964  uint8 reason;
965  uint8 encEnable;
967 
969 typedef struct
970 {
972  uint8 BLEEventCode;
973  uint16 connHandle;
974  uint8 random[B_RANDOM_NUM_SIZE];
977 
979 typedef struct
980 {
982  uint8 numHandles;
986 
988 typedef struct
989 {
991  uint8 numHciCmdPkt;
992  uint16 cmdOpcode;
993  uint8 *pReturnParam;
995 
997 typedef struct
998 {
1000  uint8 length;
1001  uint16 cmdOpcode;
1002  uint8 *pEventParam;
1004 
1006 typedef struct
1007 {
1009  uint8 cmdStatus;
1011  uint16 cmdOpcode;
1013 
1015 typedef struct
1016 {
1020 
1022 typedef struct
1023 {
1025  uint8 status;
1026  uint16 connHandle;
1027  uint8 reason;
1029 
1031 typedef struct
1032 {
1034  uint8 linkType;
1036 
1038 typedef struct
1039 {
1041  uint16 connHandle;
1043 
1045 typedef struct
1046 {
1049  uint8 status;
1050  uint16 connHandle;
1051  uint16 Interval_Min;
1052  uint16 Interval_Max;
1053  uint16 Latency;
1054  uint16 Timeout;
1056 
1058 typedef struct
1059 {
1062  uint8 status;
1063  uint16 connHandle;
1064  uint8 txPhy;
1065  uint8 rxPhy;
1067 
1069 typedef struct
1070 {
1073  uint16 connHandle;
1074  uint16 maxTxOctets;
1075  uint16 maxTxTime;
1076  uint16 maxRxOctets;
1077  uint16 maxRxTime;
1079 
1081 typedef struct
1082 {
1085  uint8 status;
1086  uint8 p256Key[LL_SC_P256_KEY_LEN];
1088 
1090 typedef struct
1091 {
1094  uint8 status;
1095  uint8 dhKey[LL_SC_DHKEY_LEN];
1097 
1099 typedef struct
1100 {
1103  uint16 connHandle;
1104  uint8 phy;
1105  uint8 dataChIndex;
1106  uint16 rssi;
1107  uint8 rssiAntenna;
1108  uint8 cteType;
1110  uint8 status;
1111  uint16 connEvent;
1112  uint8 sampleCount;
1113  int8 *iSamples;
1114  int8 *qSamples;
1116 
1118 typedef struct
1119 {
1122  uint8 status;
1123  uint16 connHandle;
1125 
1127 typedef struct
1128 {
1131  uint16 totalDataLen;
1132  uint8 eventIndex;
1133  uint16 connHandle;
1134  uint8 phy;
1135  uint8 dataChIndex;
1136  uint16 rssi;
1137  uint8 rssiAntenna;
1138  uint8 cteType;
1140  uint8 status;
1141  uint16 connEvent;
1142  uint8 dataLen;
1143  uint8 sampleRate;
1144  uint8 sampleSize;
1145  uint8 sampleCtrl;
1146  void *iSamples;
1147  void *qSamples;
1149 
1151 typedef struct
1152 {
1155  uint16 syncHandle;
1157  uint16 rssi;
1158  uint8 rssiAntenna;
1159  uint8 cteType;
1161  uint8 status;
1162  uint16 eventCounter;
1163  uint8 sampleCount;
1164  int8 *iSamples;
1165  int8 *qSamples;
1167 
1169 typedef struct
1170 {
1171  uint8 status;
1172  uint16 dataPktLen;
1173  uint8 numDataPkts;
1175 
1177 typedef struct
1178 {
1181  uint16 connHandle;
1182  uint8 chSelAlgo;
1184 
1186 typedef struct
1187 {
1189  uint8 *pData;
1190 } hciPacket_t;
1191 
1193 typedef struct
1194 {
1196  uint8 pktType;
1197  uint16 connHandle;
1198  uint8 pbFlag;
1199  uint16 pktLen;
1200  uint8 *pData;
1201 } hciDataPacket_t;
1202 
1204 
1205 // OSAL HCI_DATA_EVENT message format. This message is used to forward incoming
1206 // data messages up to an application
1207 typedef struct
1208 {
1209  osal_event_hdr_t hdr;
1210  uint16 connHandle;
1211  uint8 pbFlag;
1212  uint16 len;
1213  uint8 *pData;
1214 } hciDataEvent_t;
1215 
1217 
1218 #if defined( CC26XX ) || defined( CC13XX )
1219 PACKED_TYPEDEF_STRUCT
1220 #else // CC254x
1221 typedef struct
1222 #endif // CC26XX/CC13XX
1223 {
1224  uint8 connId;
1225  uint8 role;
1226  uint8 addr[LL_DEVICE_ADDR_LEN];
1227  uint8 addrType;
1228 } hciConnInfo_t;
1229 
1230 #if defined( CC26XX ) || defined( CC13XX )
1231 PACKED_TYPEDEF_STRUCT
1232 #else // CC254x
1233 typedef struct
1234 #endif // CC26XX/CC13XX
1235 {
1236  uint32_t accessAddr;
1237  uint16_t connInterval;
1238  uint8_t hopValue;
1239  uint16_t mSCA;
1240  uint8_t nextChan;
1241  uint8_t chanMap[LL_NUM_BYTES_FOR_CHAN_MAP];
1242  uint8_t crcInit[LL_PKT_CRC_LEN];
1243 }hciActiveConnInfo_t;
1244 
1245 #if defined( CC26XX ) || defined( CC13XX )
1246 PACKED_TYPEDEF_STRUCT
1247 #else // CC254x
1248 typedef struct
1249 #endif // CC26XX/CC13XX
1250 {
1251  uint16 numPkts;
1252  uint16 numCrcErr;
1253  uint16 numEvents;
1254  uint16 numMMissedEvents;
1255 } hciPER_t;
1256 
1259 /*
1260  * LOCAL VARIABLES
1261  */
1262 
1263 /*
1264  * GLOBAL VARIABLES
1265  */
1266 
1268 
1279 extern void *HCI_bm_alloc( uint16 size );
1280 
1294 extern uint8 HCI_ValidConnTimeParams( uint16 connIntervalMin,
1295  uint16 connIntervalMax,
1296  uint16 connLatency,
1297  uint16 connTimeout );
1298 
1304 extern void HCI_TestAppTaskRegister( uint8 taskID );
1305 
1311 extern void HCI_GAPTaskRegister( uint8 taskID );
1312 
1318 extern void HCI_L2CAPTaskRegister( uint8 taskID );
1319 
1325 extern void HCI_SMPTaskRegister( uint8 taskID );
1326 
1332 extern void HCI_ExtTaskRegister( uint8 taskID );
1333 
1358 extern hciStatus_t HCI_SendDataPkt( uint16 connHandle,
1359  uint8 pbFlag,
1360  uint16 pktLen,
1361  uint8 *pData );
1362 
1378 extern hciStatus_t HCI_DisconnectCmd( uint16 connHandle,
1379  uint8 reason );
1380 
1382 
1400 extern hciStatus_t HCI_ReadRemoteVersionInfoCmd( uint16 connHandle );
1401 
1402 
1416 extern hciStatus_t HCI_SetEventMaskCmd( uint8 *pMask );
1417 
1418 
1432 extern hciStatus_t HCI_SetEventMaskPage2Cmd( uint8 *pMask );
1433 
1442 extern hciStatus_t HCI_ResetCmd( void );
1443 
1455 extern hciStatus_t HCI_ReadTransmitPowerLevelCmd( uint16 connHandle,
1456  uint8 txPwrType );
1457 
1459 
1473 extern hciStatus_t HCI_SetControllerToHostFlowCtrlCmd( uint8 flowControlEnable );
1474 
1494 extern hciStatus_t HCI_HostBufferSizeCmd( uint16 hostAclPktLen,
1495  uint8 hostSyncPktLen,
1496  uint16 hostTotalNumAclPkts,
1497  uint16 hostTotalNumSyncPkts );
1498 
1500 
1529 extern hciStatus_t HCI_HostNumCompletedPktCmd( uint8 numHandles,
1530  uint16 *connHandles,
1531  uint16 *numCompletedPkts );
1532 
1544 extern hciStatus_t HCI_ReadAuthPayloadTimeoutCmd( uint16 connHandle,
1545  uint16 *aptoValue );
1546 
1558 extern hciStatus_t HCI_WriteAuthPayloadTimeoutCmd( uint16 connHandle,
1559  uint16 aptoValue );
1560 
1569 extern hciStatus_t HCI_ReadLocalVersionInfoCmd( void );
1570 
1579 extern hciStatus_t HCI_ReadLocalSupportedCommandsCmd( void );
1580 
1589 extern hciStatus_t HCI_ReadLocalSupportedFeaturesCmd( void );
1590 
1599 extern hciStatus_t HCI_ReadBDADDRCmd( void );
1600 
1617 extern hciStatus_t HCI_ReadRssiCmd( uint16 connHandle );
1618 
1632 extern hciStatus_t HCI_LE_SetEventMaskCmd( uint8 *pEventMask );
1633 
1642 extern hciStatus_t HCI_LE_ReadBufSizeCmd( void );
1643 
1653 extern hciStatus_t HCI_LE_ReadLocalSupportedFeaturesCmd( void );
1654 
1656 
1668 extern hciStatus_t HCI_LE_SetRandomAddressCmd( uint8 *pRandAddr );
1669 
1687 extern hciStatus_t HCI_LE_SetAdvParamCmd( uint16 advIntervalMin,
1688  uint16 advIntervalMax,
1689  uint8 advType,
1690  uint8 ownAddrType,
1691  uint8 directAddrType,
1692  uint8 *directAddr,
1693  uint8 advChannelMap,
1694  uint8 advFilterPolicy );
1695 
1707 extern hciStatus_t HCI_LE_SetAdvDataCmd( uint8 dataLen,
1708  uint8 *pData );
1709 
1721 extern hciStatus_t HCI_LE_SetScanRspDataCmd( uint8 dataLen,
1722  uint8 *pData );
1723 
1734 extern hciStatus_t HCI_LE_SetAdvEnableCmd( uint8 advEnable );
1735 
1744 extern hciStatus_t HCI_LE_ReadAdvChanTxPowerCmd( void );
1745 
1762 extern hciStatus_t HCI_LE_SetScanParamCmd( uint8 scanType,
1763  uint16 scanInterval,
1764  uint16 scanWindow,
1765  uint8 ownAddrType,
1766  uint8 filterPolicy );
1767 
1780 extern hciStatus_t HCI_LE_SetScanEnableCmd( uint8 scanEnable,
1781  uint8 filterDuplicates );
1782 
1807 extern hciStatus_t HCI_LE_CreateConnCmd( uint16 scanInterval,
1808  uint16 scanWindow,
1809  uint8 initFilterPolicy,
1810  uint8 addrTypePeer,
1811  uint8 *peerAddr,
1812  uint8 ownAddrType,
1813  uint16 connIntervalMin,
1814  uint16 connIntervalMax,
1815  uint16 connLatency,
1816  uint16 connTimeout,
1817  uint16 minLen,
1818  uint16 maxLen );
1819 
1828 extern hciStatus_t HCI_LE_CreateConnCancelCmd( void );
1829 
1831 
1840 extern hciStatus_t HCI_LE_ReadWhiteListSizeCmd( void );
1841 
1842 
1851 extern hciStatus_t HCI_LE_ClearWhiteListCmd( void );
1852 
1853 
1865 extern hciStatus_t HCI_LE_AddWhiteListCmd( uint8 addrType,
1866  uint8 *devAddr );
1867 
1868 
1880 extern hciStatus_t HCI_LE_RemoveWhiteListCmd( uint8 addrType,
1881  uint8 *devAddr );
1882 
1884 
1902 extern hciStatus_t HCI_LE_ConnUpdateCmd( uint16 connHandle,
1903  uint16 connIntervalMin,
1904  uint16 connIntervalMax,
1905  uint16 connLatency,
1906  uint16 connTimeout,
1907  uint16 minLen,
1908  uint16 maxLen );
1909 
1911 
1923 extern hciStatus_t HCI_LE_SetHostChanClassificationCmd( uint8 *chanMap );
1924 
1936 extern hciStatus_t HCI_LE_ReadChannelMapCmd( uint16 connHandle );
1937 
1950 extern hciStatus_t HCI_LE_ReadRemoteUsedFeaturesCmd( uint16 connHandle );
1951 
1972 extern hciStatus_t HCI_LE_EncryptCmd( uint8 *key,
1973  uint8 *plainText );
1974 
1997 extern hciStatus_t HCI_LE_RandCmd( void );
1998 
2000 
2016 extern hciStatus_t HCI_LE_StartEncyptCmd( uint16 connHandle,
2017  uint8 *random,
2018  uint8 *encDiv,
2019  uint8 *ltk );
2020 
2032 extern hciStatus_t HCI_LE_LtkReqReplyCmd( uint16 connHandle,
2033  uint8 *ltk );
2034 
2035 
2046 extern hciStatus_t HCI_LE_LtkReqNegReplyCmd( uint16 connHandle );
2047 
2049 
2058 extern hciStatus_t HCI_LE_ReadSupportedStatesCmd( void );
2059 
2072 extern hciStatus_t HCI_LE_ReceiverTestCmd( uint8 rxChan );
2073 
2090 extern hciStatus_t HCI_LE_TransmitterTestCmd( uint8 txChan,
2091  uint8 dataLen,
2092  uint8 pktPayload );
2093 
2104 extern hciStatus_t HCI_LE_TestEndCmd( void );
2105 
2106 // V4.1
2107 
2109 
2131 extern hciStatus_t HCI_LE_RemoteConnParamReqReplyCmd( uint16 connHandle,
2132  uint16 connIntervalMin,
2133  uint16 connIntervalMax,
2134  uint16 connLatency,
2135  uint16 connTimeout,
2136  uint16 minLen,
2137  uint16 maxLen );
2138 
2155 extern hciStatus_t HCI_LE_RemoteConnParamReqNegReplyCmd( uint16 connHandle,
2156  uint8 reason );
2157 
2159 
2160 // V4.2 Extended Data Length
2161 
2177 extern hciStatus_t HCI_LE_SetDataLenCmd( uint16 connHandle,
2178  uint16 txOctets,
2179  uint16 txTime );
2180 
2192 extern hciStatus_t HCI_LE_ReadSuggestedDefaultDataLenCmd( void );
2193 
2209 extern hciStatus_t HCI_LE_WriteSuggestedDefaultDataLenCmd( uint16 txOctets,
2210  uint16 txTime );
2211 
2223 extern hciStatus_t HCI_LE_ReadMaxDataLenCmd( void );
2224 
2225 // V4.2 Privacy 1.2
2226 
2243 extern hciStatus_t HCI_LE_AddDeviceToResolvingListCmd( uint8 peerIdAddrType,
2244  uint8 *peerIdAddr,
2245  uint8 *peerIRK,
2246  uint8 *localIRK );
2247 
2262 extern hciStatus_t HCI_LE_RemoveDeviceFromResolvingListCmd( uint8 peerIdAddrType,
2263  uint8 *peerIdAddr );
2264 
2276 extern hciStatus_t HCI_LE_ClearResolvingListCmd( void );
2277 
2289 extern hciStatus_t HCI_LE_ReadResolvingListSizeCmd( void );
2290 
2308 extern hciStatus_t HCI_LE_ReadPeerResolvableAddressCmd( uint8 peerIdAddrType,
2309  uint8 *peerIdAddr );
2310 
2329 extern hciStatus_t HCI_LE_ReadLocalResolvableAddressCmd( uint8 localIdAddrType,
2330  uint8 *localIdAddr );
2331 
2333 
2348 extern hciStatus_t HCI_LE_SetAddressResolutionEnableCmd( uint8 addrResolutionEnable );
2349 
2351 
2367 extern hciStatus_t HCI_LE_SetResolvablePrivateAddressTimeoutCmd( uint16 rpaTimeout );
2368 
2385 extern hciStatus_t HCI_LE_SetPrivacyModeCmd( uint8 peerIdAddrType,
2386  uint8 *peerIdAddr,
2387  uint8 privacyMode );
2388 
2389 // V4.2 Secure Connections
2390 
2392 
2408 extern hciStatus_t HCI_LE_ReadLocalP256PublicKeyCmd( void );
2409 
2410 
2429 extern hciStatus_t HCI_LE_GenerateDHKeyCmd( uint8 *publicKey );
2430 
2432 
2433 // V5.0 2M and Coded PHY
2434 
2445 extern hciStatus_t HCI_LE_ReadPhyCmd( uint16 connHandle );
2446 
2447 
2463 extern hciStatus_t HCI_LE_SetDefaultPhyCmd( uint8 allPhys,
2464  uint8 txPhy,
2465  uint8 rxPhy );
2466 
2467 
2482 extern hciStatus_t HCI_LE_SetPhyCmd( uint16 connHandle,
2483  uint8 allPhys,
2484  uint8 txPhy,
2485  uint8 rxPhy,
2486  uint16 phyOpts );
2487 
2488 
2504 extern hciStatus_t HCI_LE_EnhancedRxTestCmd( uint8 rxChan,
2505  uint8 rxPhy,
2506  uint8 modIndex );
2507 
2508 
2525 extern hciStatus_t HCI_LE_EnhancedTxTestCmd( uint8 txChan,
2526  uint8 payloadLen,
2527  uint8 payloadType,
2528  uint8 txPhy );
2549 extern hciStatus_t HCI_LE_EnhancedCteRxTestCmd( uint8 rxChan,
2550  uint8 rxPhy,
2551  uint8 modIndex,
2552  uint8 expectedCteLength,
2553  uint8 expectedCteType,
2554  uint8 slotDurations,
2555  uint8 length,
2556  uint8 *pAntenna);
2557 
2578 extern hciStatus_t HCI_LE_EnhancedCteTxTestCmd( uint8 txChan,
2579  uint8 payloadLen,
2580  uint8 payloadType,
2581  uint8 txPhy,
2582  uint8 cteLength,
2583  uint8 cteType,
2584  uint8 length,
2585  uint8 *pAntenna);
2594 extern hciStatus_t HCI_LE_ReadTxPowerCmd( void );
2595 
2604 extern hciStatus_t HCI_LE_ReadRfPathCompCmd( void );
2605 
2617 extern hciStatus_t HCI_LE_WriteRfPathCompCmd( int16 txPathParam,
2618  int16 rxPathParam );
2619 
2638 extern hciStatus_t HCI_LE_SetConnectionCteReceiveParamsCmd( uint16 connHandle,
2639  uint8 samplingEnable,
2640  uint8 slotDurations,
2641  uint8 length,
2642  uint8 *pAntenna);
2643 
2644 
2661 extern hciStatus_t HCI_LE_SetConnectionCteTransmitParamsCmd( uint16 connHandle,
2662  uint8 types,
2663  uint8 length,
2664  uint8 *pAntenna);
2665 
2682 extern hciStatus_t HCI_LE_SetConnectionCteRequestEnableCmd( uint16 connHandle,
2683  uint8 enable,
2684  uint16 interval,
2685  uint8 length,
2686  uint8 type);
2687 
2701 extern hciStatus_t HCI_LE_SetConnectionCteResponseEnableCmd( uint16 connHandle,
2702  uint8 enable);
2703 
2714 extern hciStatus_t HCI_LE_ReadAntennaInformationCmd( void );
2715 
2716 /*
2717 ** HCI Vendor Specific Commands: Link Layer Extensions
2718 */
2719 
2732 extern hciStatus_t HCI_EXT_SetRxGainCmd( uint8 rxGain );
2733 
2734 
2750 extern hciStatus_t HCI_EXT_SetTxPowerCmd( uint8 txPower );
2751 
2752 
2765 extern hciStatus_t HCI_EXT_OnePktPerEvtCmd( uint8 control );
2766 
2768 
2787 extern hciStatus_t HCI_EXT_ClkDivOnHaltCmd( uint8 control );
2788 
2810 extern hciStatus_t HCI_EXT_DeclareNvUsageCmd( uint8 mode );
2811 
2813 
2827 extern hciStatus_t HCI_EXT_DecryptCmd( uint8 *key,
2828  uint8 *encText );
2829 
2852 extern hciStatus_t HCI_EXT_SetLocalSupportedFeaturesCmd( uint8 *localFeatures );
2853 
2879 extern hciStatus_t HCI_EXT_SetFastTxResponseTimeCmd( uint8 control );
2880 
2881 
2900 extern hciStatus_t HCI_EXT_SetSlaveLatencyOverrideCmd( uint8 control );
2901 
2902 
2926 extern hciStatus_t HCI_EXT_ModemTestTxCmd( uint8 cwMode,
2927  uint8 txChan );
2928 
2950 extern hciStatus_t HCI_EXT_ModemHopTestTxCmd( void );
2951 
2974 extern hciStatus_t HCI_EXT_ModemTestRxCmd( uint8 rxChan );
2975 
3000 extern hciStatus_t HCI_EXT_EnhancedModemTestTxCmd( uint8 cwMode,
3001  uint8 rfPhy,
3002  uint8 rfChan );
3003 
3031 extern hciStatus_t HCI_EXT_EnhancedModemHopTestTxCmd( uint8 payloadLen,
3032  uint8 payloadType,
3033  uint8 rfPhy );
3034 
3058 extern hciStatus_t HCI_EXT_EnhancedModemTestRxCmd( uint8 rfPhy,
3059  uint8 rfChan );
3060 
3071 extern hciStatus_t HCI_EXT_EndModemTestCmd( void );
3072 
3074 
3097 extern hciStatus_t HCI_EXT_SetBDADDRCmd( uint8 *bdAddr );
3098 
3100 
3126 extern hciStatus_t HCI_EXT_SetSCACmd( uint16 scaInPPM );
3127 
3143 extern hciStatus_t HCI_EXT_EnablePTMCmd( void );
3144 
3164 extern hciStatus_t HCI_EXT_SetFreqTuneCmd( uint8 step );
3165 
3180 extern hciStatus_t HCI_EXT_SaveFreqTuneCmd( void );
3181 
3202 extern hciStatus_t HCI_EXT_SetMaxDtmTxPowerCmd( uint8 txPower );
3203 
3205 
3245 extern hciStatus_t HCI_EXT_MapPmIoPortCmd( uint8 ioPort, uint8 ioPin );
3246 
3248 
3264 extern hciStatus_t HCI_EXT_DisconnectImmedCmd( uint16 connHandle );
3265 
3284 extern hciStatus_t HCI_EXT_PacketErrorRateCmd( uint16 connHandle, uint8 command );
3285 
3327 extern hciStatus_t HCI_EXT_PERbyChanCmd( uint16 connHandle, perByChan_t *perByChan );
3328 
3330 
3339 extern hciStatus_t HCI_EXT_ExtendRfRangeCmd( void );
3340 
3353 extern hciStatus_t HCI_EXT_HaltDuringRfCmd( uint8 mode );
3354 
3356 
3358 
3412 extern hciStatus_t HCI_EXT_AdvEventNoticeCmd( uint8 taskID, uint16 taskEvent );
3413 
3415 
3470 extern hciStatus_t HCI_EXT_ConnEventNoticeCmd( uint16 connHandle, uint8 taskID, uint16 taskEvent );
3471 
3493 extern hciStatus_t HCI_EXT_BuildRevisionCmd( uint8 mode, uint16 userRevNum );
3494 
3496 
3528 extern hciStatus_t HCI_EXT_DelaySleepCmd( uint16 delay );
3529 
3531 
3550 extern hciStatus_t HCI_EXT_ResetSystemCmd( uint8 mode );
3551 
3552 // @cond NODOC
3553 
3564 extern hciStatus_t HCI_EXT_LLTestModeCmd( uint8 testCase );
3565 
3566 
3577 extern hciStatus_t HCI_EXT_OverlappedProcessingCmd( uint8 mode );
3578 
3580 
3601 extern hciStatus_t HCI_EXT_NumComplPktsLimitCmd( uint8 limit,
3602  uint8 flushOnEvt );
3603 
3605 
3638 extern hciStatus_t HCI_EXT_GetConnInfoCmd( uint8 *numAllocConns,
3639  uint8 *numActiveConns,
3640  hciConnInfo_t *activeConnInfo );
3641 
3643 
3660 extern hciStatus_t HCI_EXT_SetMaxDataLenCmd( uint16 txOctets,
3661  uint16 txTime,
3662  uint16 rxOctets,
3663  uint16 rxTime );
3664 
3677 extern hciStatus_t HCI_EXT_SetDtmTxPktCntCmd( uint16 txPktCnt );
3678 
3680 
3689 extern hciStatus_t HCI_EXT_ReadRandAddrCmd( void );
3690 
3691 
3703 extern hciStatus_t HCI_EXT_SetPinOutputCmd( uint8 dio,
3704  uint8 value );
3705 
3728 extern hciStatus_t HCI_EXT_SetLocationingAccuracyCmd( uint16 connHandle,
3729  uint8 sampleRate1M,
3730  uint8 sampleSize1M,
3731  uint8 sampleRate2M,
3732  uint8 sampleSize2M,
3733  uint8 sampleCtrl);
3734 
3756 extern hciStatus_t HCI_EXT_GetActiveConnInfoCmd( uint8 connId, hciActiveConnInfo_t *activeConnInfo );
3757 
3758 
3780 extern hciStatus_t HCI_EXT_SetVirtualAdvAddrCmd( uint8 advHandle, uint8 *bdAddr );
3781 
3782 
3784 
3785 #ifdef __cplusplus
3786 }
3787 #endif
3788 
3789 #endif /* HCI_H */
3790 
hciStatus_t HCI_EXT_PacketErrorRateCmd(uint16 connHandle, uint8 command)
int8 * iSamples
list of I samples
Definition: hci.h:1113
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1017
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1121
uint8 status
packet status (success or CRC error)
Definition: hci.h:1110
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:940
uint8 sampleCount
number of samples
Definition: hci.h:1112
uint8 status
status of event
Definition: hci.h:953
hciStatus_t HCI_LE_EnhancedCteTxTestCmd(uint8 txChan, uint8 payloadLen, uint8 payloadType, uint8 txPhy, uint8 cteLength, uint8 cteType, uint8 length, uint8 *pAntenna)
int8 * iSamples
list of I samples
Definition: hci.h:1164
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:929
uint16 * pNumCompletedPackets
pointer to the number of completed packets array
Definition: hci.h:984
hciStatus_t HCI_EXT_SetMaxDataLenCmd(uint16 txOctets, uint16 txTime, uint16 rxOctets, uint16 rxTime)
uint16 connHandle
connection handle
Definition: hci.h:1073
uint8 status
status of event
Definition: hci.h:941
uint8 status
status of event
Definition: hci.h:1062
uint8 phy
current phy
Definition: hci.h:1104
uint8 addrType
public or random address type
Definition: hci.h:908
uint8 pktType
packet type
Definition: hci.h:1196
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:962
uint8 clockAccuracy
connection clock accuracy
Definition: hci.h:891
uint16 rssi
current rssi
Definition: hci.h:1157
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1179
uint16 Interval_Min
minimum connection interval
Definition: hci.h:1051
hciStatus_t HCI_LE_SetDefaultPhyCmd(uint8 allPhys, uint8 txPhy, uint8 rxPhy)
HCI Packet event.
Definition: hci.h:1186
osal_event_hdr_t hdr
osal event header
Definition: hci.h:971
#define B_RANDOM_NUM_SIZE
BLE Random Number Size.
Definition: bcomdef.h:133
uint8 numHandles
number of handles
Definition: hci.h:982
uint8 * pReturnParam
pointer to the return parameter
Definition: hci.h:993
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:1151
osal_event_hdr_t hdr
osal event header
Definition: hci.h:961
uint16 dataPktLen
data packet length
Definition: hci.h:1172
uint16 rssi
current rssi
Definition: hci.h:1106
Command Status Event.
Definition: hci.h:1006
uint16 connHandle
connection handle
Definition: hci.h:1063
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1071
osal_event_hdr_t hdr
osal event header
Definition: hci.h:927
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:1015
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:886
uint16 connHandle
connection handle
Definition: hci.h:1123
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1102
uint8 status
status of event
Definition: hci.h:1025
hciStatus_t HCI_LE_RandCmd(void)
LE Advertising Report Event.
Definition: hci.h:905
uint8 sampleCount
number of samples
Definition: hci.h:1163
uint8 dataChIndex
index of data channel
Definition: hci.h:1105
hciStatus_t HCI_LE_ReadRfPathCompCmd(void)
#define B_MAX_ADV_LEN
BLE Maximum Advertising Packet Length.
Definition: bcomdef.h:130
uint8 dataChIndex
index of data channel
Definition: hci.h:1135
hciStatus_t HCI_LE_ReadResolvingListSizeCmd(void)
uint8 cteType
cte type
Definition: hci.h:1138
LE CTE Connection IQ Report Event.
Definition: hci.h:1099
LE Data Length Change Event.
Definition: hci.h:1069
hciStatus_t HCI_SetEventMaskPage2Cmd(uint8 *pMask)
hciStatus_t HCI_LE_ReadLocalSupportedFeaturesCmd(void)
uint8 numDevices
number of discovered devices
Definition: hci.h:920
uint16 syncHandle
sync handle in periodic adv
Definition: hci.h:1155
uint16 connectionHandle
connection handle
Definition: hci.h:868
uint16 connHandle
connection handle
Definition: hci.h:1197
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1072
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:951
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:1058
uint16 connEvent
connection event
Definition: hci.h:1141
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1040
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1120
osal_event_hdr_t hdr
osal event header
Definition: hci.h:981
uint8 status
packet status (success or CRC error)
Definition: hci.h:1140
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1048
hciStatus_t HCI_LE_EnhancedRxTestCmd(uint8 rxChan, uint8 rxPhy, uint8 modIndex)
uint8 rssiAntenna
antenna ID
Definition: hci.h:1107
hciStatus_t HCI_LE_ReadAntennaInformationCmd(void)
uint8 BLEEventCode
BLE Event code.
Definition: hci.h:1084
osal_event_hdr_t hdr
osal event header
Definition: hci.h:999
hciStatus_t HCI_WriteAuthPayloadTimeoutCmd(uint16 connHandle, uint16 aptoValue)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1024
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1160
hciStatus_t HCI_LE_SetHostChanClassificationCmd(uint8 *chanMap)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1093
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1153
union _hciEvt_BLEConnComplete_u_ hciEvt_BLEConnComplete_u
LE Connection Complete Event.
uint16 connInterval
connection interval
Definition: hci.h:872
uint16 Interval_Max
maximum connection interval
Definition: hci.h:1052
uint8 length
length of parametric data, in bytes
Definition: hci.h:1000
hciStatus_t HCI_EXT_NumComplPktsLimitCmd(uint8 limit, uint8 flushOnEvt)
uint16 connectionHandle
connection handle
Definition: hci.h:954
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1061
uint16 maxRxTime
maximum receive time
Definition: hci.h:1077
hciStatus_t HCI_ReadRssiCmd(uint16 connHandle)
uint8 status
status
Definition: hci.h:1085
int8 * qSamples
list of Q samples
Definition: hci.h:1165
uint16 connectionHandle
connection handle
Definition: hci.h:884
uint8 sampleSize
sample size (8 or 16 bit)
Definition: hci.h:1144
uint16 connTimeout
connection supervision timeout
Definition: hci.h:945
uint8 encEnable
encryption enabled or not
Definition: hci.h:965
uint8 eventIndex
event number
Definition: hci.h:1132
uint16 Latency
slave latency
Definition: hci.h:1053
hciStatus_t HCI_LE_ReadSupportedStatesCmd(void)
uint16 connLatency
connection latency
Definition: hci.h:889
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1139
uint8 linkType
synchronous or asynchronous buffer overflow
Definition: hci.h:1034
Vendor Specific Command Complete Event.
Definition: hci.h:997
osal_event_hdr_t hdr
osal event header
Definition: hci.h:939
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:1169
uint8 slotDuration
sampling slot 1us or 2us
Definition: hci.h:1109
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:875
Disconnection Complete Event.
Definition: hci.h:1022
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:1195
Authenticated Payload Timeout Expired Event.
Definition: hci.h:1038
hciStatus_t HCI_EXT_EnhancedModemTestTxCmd(uint8 cwMode, uint8 rfPhy, uint8 rfChan)
int8 * qSamples
list of Q samples
Definition: hci.h:1114
hciStatus_t HCI_LE_ReadWhiteListSizeCmd(void)
uint16 connHandle
connection handle
Definition: hci.h:1050
uint16 maxTxTime
maximum transmission time
Definition: hci.h:1075
hciStatus_t HCI_LE_SetEventMaskCmd(uint8 *pEventMask)
int8 rssi
report RSSI
Definition: hci.h:912
uint16 connLatency
connection latency
Definition: hci.h:944
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:919
uint8 * pData
data
Definition: hci.h:1200
hciStatus_t HCI_EXT_SetRxGainCmd(uint8 rxGain)
uint8 reason
reason
Definition: hci.h:964
int8 rssi
report RSSI
Definition: hci.h:933
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:972
uint16 cmdOpcode
command opcode
Definition: hci.h:1011
uint8 chSelAlgo
channel selection algorithm
Definition: hci.h:1182
LE CTE Request Failed Event.
Definition: hci.h:1118
hciStatus_t HCI_ReadRemoteVersionInfoCmd(uint16 connHandle)
osal_event_hdr_t hdr
OSAL event header.
Definition: hci.h:1188
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:1130
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1083
hciStatus_t HCI_EXT_ModemHopTestTxCmd(void)
Command Complete Event.
Definition: hci.h:988
uint8 rxPhy
RX PHY.
Definition: hci.h:1065
hciEvt_DevInfo_t * devInfo
pointer to the array of devInfo
Definition: hci.h:921
LE Channel Selection Algorithm Event.
Definition: hci.h:1177
uint16 connHandle
connection handle
Definition: hci.h:963
HCI Data Packet.
Definition: hci.h:1193
uint8 status
status
Definition: hci.h:1094
uint8 status
status of event
Definition: hci.h:867
uint16 connTimeout
connection supervision timeout
Definition: hci.h:890
uint16 Timeout
supervision timeout
Definition: hci.h:1054
LE Generate DHKey Complete Event.
Definition: hci.h:1090
hciStatus_t HCI_EXT_EnhancedModemHopTestTxCmd(uint8 payloadLen, uint8 payloadType, uint8 rfPhy)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1129
uint16 * pConnectionHandle
pointer to the connection handle array
Definition: hci.h:983
LE Remote Connection Parameter Request Event.
Definition: hci.h:1045
hciStatus_t HCI_EXT_PERbyChanCmd(uint16 connHandle, perByChan_t *perByChan)
uint16 connEvent
connection event
Definition: hci.h:1111
uint16 connLatency
connection latency
Definition: hci.h:873
uint8 status
status of event
Definition: hci.h:1049
hciStatus_t HCI_ReadLocalSupportedCommandsCmd(void)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:928
hciStatus_t HCI_EXT_ModemTestRxCmd(uint8 rxChan)
uint16 connInterval
connection interval
Definition: hci.h:888
uint8 bleChan
BLE channel.
Definition: hci.h:932
uint8 eventType
advertisement or scan response event type
Definition: hci.h:907
osal_event_hdr_t hdr
osal event header
Definition: hci.h:865
hciEvt_BLEEnhConnComplete_t enhEvt
enhanced connection complete event
Definition: hci.h:901
uint16 connHandle
connection handle
Definition: hci.h:1133
osal_event_hdr_t hdr
osal event header
Definition: hci.h:881
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:874
Type definitions and macros for BLE stack.
VS LE Scan Request Report Event.
Definition: hci.h:925
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1101
hciStatus_t HCI_EXT_SetFastTxResponseTimeCmd(uint8 control)
LE Encryption Change Event.
Definition: hci.h:959
hciStatus_t HCI_EXT_BuildRevisionCmd(uint8 mode, uint16 userRevNum)
hciStatus_t HCI_LE_ReadPhyCmd(uint16 connHandle)
uint16 connInterval
connection interval
Definition: hci.h:943
uint8 phy
current phy
Definition: hci.h:1134
uint8 * pEventParam
event parameters
Definition: hci.h:1002
uint8 channelIndex
index of channel
Definition: hci.h:1156
uint32_t len
Image length in bytes.
Definition: oad_image_header.h:602
hciEvt_BLEConnComplete_t legEvt
connection complete event
Definition: hci.h:900
hciStatus_t HCI_ReadTransmitPowerLevelCmd(uint16 connHandle, uint8 txPwrType)
uint8 cmdStatus
command status
Definition: hci.h:1009
LE Enhanced Connection Complete Event.
Definition: hci.h:879
hciStatus_t HCI_LE_SetPhyCmd(uint16 connHandle, uint8 allPhys, uint8 txPhy, uint8 rxPhy, uint16 phyOpts)
uint16 connHandle
connection handle
Definition: hci.h:1041
uint16 cmdOpcode
command opcode
Definition: hci.h:992
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:866
Number of Completed Packets Event.
Definition: hci.h:979
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:882
uint8 txPhy
TX PHY.
Definition: hci.h:1064
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:1173
hciStatus_t HCI_EXT_EnhancedModemTestRxCmd(uint8 rfPhy, uint8 rfChan)
uint16 pktLen
packet length
Definition: hci.h:1199
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1092
uint8 peerAddrType
peer address type
Definition: hci.h:870
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1008
hciStatus_t HCI_EXT_ConnEventNoticeCmd(uint16 connHandle, uint8 taskID, uint16 taskEvent)
uint16 cmdOpcode
command opcode
Definition: hci.h:1001
uint8 reason
reason
Definition: hci.h:1027
uint8 numHciCmdPkt
number of HCI Command Packet
Definition: hci.h:991
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1047
LE Extended CTE Connection IQ Report Event.
Definition: hci.h:1127
uint8 hardwareCode
hardware error code
Definition: hci.h:1018
#define B_ADDR_LEN
Default Public and Random Address Length.
Definition: bcomdef.h:108
Data Buffer Overflow Event.
Definition: hci.h:1031
uint8 role
role of connection
Definition: hci.h:885
LE Connection Complete Event.
Definition: hci.h:863
uint8 numHciCmdPkt
number of HCI command packets
Definition: hci.h:1010
uint16 encryptedDiversifier
encrypted diversifier
Definition: hci.h:975
hciStatus_t HCI_LE_AddDeviceToResolvingListCmd(uint8 peerIdAddrType, uint8 *peerIdAddr, uint8 *peerIRK, uint8 *localIRK)
LE Read Remote Used Features Complete Event.
Definition: hci.h:949
uint16 eventCounter
periodic adv event counter
Definition: hci.h:1162
uint8 peerAddrType
peer address type
Definition: hci.h:930
uint16 totalDataLen
samples data length includes in all next events
Definition: hci.h:1131
hciStatus_t HCI_ReadLocalSupportedFeaturesCmd(void)
uint8 sampleRate
sample rate (1/2/3/4 MHz)
Definition: hci.h:1143
hciStatus_t HCI_LE_ReadChannelMapCmd(uint16 connHandle)
uint16 connHandle
connection handle
Definition: hci.h:1181
uint8 status
status of event
Definition: hci.h:1171
hciStatus_t HCI_LE_ClearWhiteListCmd(void)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:990
hciStatus_t HCI_LE_ReadMaxDataLenCmd(void)
hciStatus_t HCI_EXT_SetSCACmd(uint16 scaInPPM)
uint16 connHandle
connection handle
Definition: hci.h:1103
uint8 cteType
cte type
Definition: hci.h:1108
uint16 maxTxOctets
maximum transmission bytes
Definition: hci.h:1074
uint16 rssi
current rssi
Definition: hci.h:1136
hciStatus_t HCI_ReadBDADDRCmd(void)
uint8 status
packet status (success or CRC error)
Definition: hci.h:1161
void * iSamples
list of I samples (list size is dataLen)
Definition: hci.h:1146
uint8 rssiAntenna
antenna ID
Definition: hci.h:1137
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1060
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:898
hciStatus_t HCI_LE_SetConnectionCteResponseEnableCmd(uint16 connHandle, uint8 enable)
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1154
LE Connection Update Complete Event.
Definition: hci.h:937
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:1180
hciStatus_t HCI_EXT_SetTxPowerCmd(uint8 txPower)
uint8 status
status of event
Definition: hci.h:883
hciStatus_t HCI_LE_WriteSuggestedDefaultDataLenCmd(uint16 txOctets, uint16 txTime)
LE Read P256 Public Key Complete Event.
Definition: hci.h:1081
uint8 dataLen
length of report data
Definition: hci.h:910
uint8 dataLen
samples data length
Definition: hci.h:1142
uint8 status
status
Definition: hci.h:1122
uint8 * pData
data
Definition: hci.h:1189
uint8 cteType
cte type
Definition: hci.h:1159
LE Advertising Packet Report Event.
Definition: hci.h:916
uint8 rssiAntenna
antenna ID
Definition: hci.h:1158
hciStatus_t HCI_EXT_DisconnectImmedCmd(uint16 connHandle)
uint16 connHandle
connection handle
Definition: hci.h:1026
uint8 BLEEventCode
BLE Event Code.
Definition: hci.h:952
hciStatus_t HCI_LE_WriteRfPathCompCmd(int16 txPathParam, int16 rxPathParam)
uint8 pbFlag
flag
Definition: hci.h:1198
uint16 maxRxOctets
maximum receive bytes
Definition: hci.h:1076
uint8 role
role of connection
Definition: hci.h:869
hciStatus_t HCI_ResetCmd(void)
osal_event_hdr_t hdr
osal event header
Definition: hci.h:1033
hciStatus_t HCI_LE_SetPrivacyModeCmd(uint8 peerIdAddrType, uint8 *peerIdAddr, uint8 privacyMode)
uint16 connectionHandle
connection handle
Definition: hci.h:942
LE Long Term Key Requested Event.
Definition: hci.h:969
osal_event_hdr_t hdr
osal event header
Definition: hci.h:918
uint8 sampleCtrl
sample control - default filtering or RAW_RF
Definition: hci.h:1145
uint16 connHandle
connection handle
Definition: hci.h:973
void * qSamples
list of Q samples (list size is dataLen)
Definition: hci.h:1147
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale