Mistake on this page? Email us
Data Structures | Macros | Typedefs | Enumerations | Functions
ll_api.h File Reference

Link layer interface file. More...

#include "wsf_types.h"
#include "wsf_os.h"
#include "util/bda.h"
#include "cfg_mac_ble.h"
#include "ll_defs.h"
Include dependency graph for ll_api.h:

Go to the source code of this file.

Data Structures

struct  LlRtCfg_t
 LL runtime configuration parameters. More...
 
struct  LlExtAdvParam_t
 Extended advertising parameters. More...
 
struct  LlExtAdvEnableParam_t
 Extended advertising enable parameters. More...
 
struct  LlPerAdvParam_t
 Periodic advertising parameters. More...
 
struct  LlScanParam_t
 Scan parameters. More...
 
struct  LlExtScanParam_t
 Extended scan parameters. More...
 
struct  LlPerAdvCreateSyncCmd_t
 Periodic advertising create sync command. More...
 
struct  LlDevicePerAdvList_t
 Device in periodic advertiser list. More...
 
struct  LlInitParam_t
 Initiating parameters (LlExtCreateConn()). More...
 
struct  LlExtInitParam_t
 Initiating parameters (LlExtCreateConn()). More...
 
struct  LlExtInitScanParam_t
 Initiating scan parameters (LlExtCreateConn()). More...
 
struct  LlConnSpec_t
 Connection specification (LlCreateConn(), LlConnUpdate() and LlExtCreateConn()). More...
 
struct  LlCisCisParams_t
 CIS parameters. More...
 
struct  LlCisCigParams_t
 CIG parameters. More...
 
struct  LlCisCigCisParamsTest_t
 CIG test CIS parameters. More...
 
struct  LlCisCigParamsTest_t
 CIG test CIG parameters. More...
 
struct  LlCisCreateCisParams_t
 CIS create CIS parameters. More...
 
struct  LlIsoSetupDataPathParams_t
 CIS create CIS parameters. More...
 
struct  LlEncMode_t
 Encryption mode data structure used in LlGetEncMode() and LlSetEncMode(). More...
 
struct  LlTestReport_t
 Test report data. More...
 
struct  LlAdvReportInd_t
 Advertising report indication. More...
 
struct  LlConnInd_t
 Connect indication. More...
 
struct  LlDisconnectInd_t
 Disconnect indication. More...
 
struct  LlConnUpdateInd_t
 Connect update indication. More...
 
struct  LlRemConnParamInd_t
 Connection parameter change indication. More...
 
struct  LlCreateConnCancelCnf_t
 Create connection cancel confirm. More...
 
struct  LlReadRemoteVerInfoCnf_t
 Read remote version information confirm. More...
 
struct  LlReadRemoteFeatCnf_t
 Read remote feature confirm. More...
 
struct  LlEncChangeInd_t
 Encryption change indication. More...
 
struct  LlEncKeyRefreshInd_t
 Key refresh indication. More...
 
struct  LlLtkReqInd_t
 LTK request indication. More...
 
struct  LlLtkReqReplyCnf_t
 LTK request reply confirm. More...
 
struct  LlLtkReqNegReplyCnf_t
 LTK request negative reply. More...
 
struct  LlAuthPayloadTimeoutInd_t
 Authentication payload timeout expired indication. More...
 
struct  LlDataLenChangeInd_t
 Data length change. More...
 
struct  LlReadLocalP256PubKeyInd_t
 Read local P-256 key pair complete. More...
 
struct  LlGenerateDhKeyInd_t
 Generate Diffie-Hellman key complete. More...
 
struct  LlPhyUpdateInd_t
 PHY update complete. More...
 
struct  LlHwErrorInd_t
 HW error. More...
 
struct  LlScanReportInd_t
 Scan report. More...
 
struct  LlExtAdvEnableCnf_t
 Extended advertising enable. More...
 
struct  LlPerAdvEnableCnf_t
 Periodic advertising enable. More...
 
struct  LlCisEstInd_t
 CIS established event. More...
 
struct  LlCisReqInd_t
 CIS request event. More...
 
struct  LlExtAdvReportInd_t
 Extended advertising report. More...
 
struct  LlExtScanEnableCnf_t
 Extended scan enable confirm. More...
 
struct  LlAdvSetTermInd_t
 Advertising set terminated. More...
 
struct  LlScanReqRcvdInd_t
 Scan request received. More...
 
struct  LlChSelInd_t
 Used channel selection indication. More...
 
struct  LlPerAdvSyncEstdCnf_t
 LE periodic advertising synchronization established. More...
 
struct  LlPerAdvReportInd_t
 LE periodic advertising report. More...
 
struct  LlPerAdvSyncLostInd_t
 LE periodic advertising sync lost. More...
 
struct  LlPerSyncTrsfRcvdInd_t
 LE periodic advertising sync transfer received. More...
 
struct  LlPeerScaCnf_t
 LE request peer SCA complete. More...
 
union  LlEvt_t
 Union of all event types. More...
 

Macros

#define LL_VER_NUM   0x1302 /* Default value. Auto-generated by builder. */
 Version number.
 
#define LL_SUP_STATE_NON_CONN_ADV   (UINT64_C(1) << 0)
 
#define LL_SUP_STATE_SCAN_ADV   (UINT64_C(1) << 1)
 
#define LL_SUP_STATE_CONN_ADV   (UINT64_C(1) << 2)
 
#define LL_SUP_STATE_HI_DUTY_DIR_ADV   (UINT64_C(1) << 3)
 
#define LL_SUP_STATE_PASS_SCAN   (UINT64_C(1) << 4)
 
#define LL_SUP_STATE_ACT_SCAN   (UINT64_C(1) << 5)
 
#define LL_SUP_STATE_INIT   (UINT64_C(1) << 6)
 
#define LL_SUP_STATE_CONN_SLV   (UINT64_C(1) << 7)
 
#define LL_SUP_STATE_NON_CONN_ADV_AND_PASS_SCAN   (UINT64_C(1) << 8)
 
#define LL_SUP_STATE_SCAN_ADV_AND_PASS_SCAN   (UINT64_C(1) << 9)
 
#define LL_SUP_STATE_CONN_ADV_AND_PASS_SCAN   (UINT64_C(1) << 10)
 
#define LL_SUP_STATE_HI_DUTY_DIR_ADV_AND_PASS_SCAN   (UINT64_C(1) << 11)
 
#define LL_SUP_STATE_NON_CONN_ADV_AND_ACT_SCAN   (UINT64_C(1) << 12)
 
#define LL_SUP_STATE_SCAN_ADV_AND_ACT_SCAN   (UINT64_C(1) << 13)
 
#define LL_SUP_STATE_CONN_ADV_AND_ACT_SCAN   (UINT64_C(1) << 14)
 
#define LL_SUP_STATE_HI_DUTY_DIR_ADV_ACT_SCAN   (UINT64_C(1) << 15)
 
#define LL_SUP_STATE_NON_CONN_ADV_AND_INIT   (UINT64_C(1) << 16)
 
#define LL_SUP_STATE_SCAN_ADV_AND_INIT   (UINT64_C(1) << 17)
 
#define LL_SUP_STATE_NON_CONN_ADV_MST   (UINT64_C(1) << 18)
 
#define LL_SUP_STATE_SCAN_ADV_MST   (UINT64_C(1) << 19)
 
#define LL_SUP_STATE_NON_CONN_ADV_SLV   (UINT64_C(1) << 20)
 
#define LL_SUP_STATE_SCAN_ADV_SLV   (UINT64_C(1) << 21)
 
#define LL_SUP_STATE_PASS_SCAN_AND_INIT   (UINT64_C(1) << 22)
 
#define LL_SUP_STATE_ACT_SCAN_AND_INIT   (UINT64_C(1) << 23)
 
#define LL_SUP_STATE_PASS_SCAN_MST   (UINT64_C(1) << 24)
 
#define LL_SUP_STATE_ACT_SCAN_MST   (UINT64_C(1) << 25)
 
#define LL_SUP_STATE_PASS_SCAN_SLV   (UINT64_C(1) << 26)
 
#define LL_SUP_STATE_ACT_SCAN_SLV   (UINT64_C(1) << 27)
 
#define LL_SUP_STATE_INIT_MST   (UINT64_C(1) << 28)
 
#define LL_SUP_STATE_LO_DUTY_DIR_ADV   (UINT64_C(1) << 29)
 
#define LL_SUP_STATE_LO_DUTY_DIR_ADV_AND_PASS_SCAN   (UINT64_C(1) << 30)
 
#define LL_SUP_STATE_LO_DUTY_DIR_ADV_AND_ACT_SCAN   (UINT64_C(1) << 31)
 
#define LL_SUP_STATE_CONN_ADV_AND_INIT   (UINT64_C(1) << 32)
 
#define LL_SUP_STATE_HI_DUTY_DIR_ADV_AND_INIT   (UINT64_C(1) << 33)
 
#define LL_SUP_STATE_LO_DUTY_DIR_ADV_AND_INIT   (UINT64_C(1) << 34)
 
#define LL_SUP_STATE_CONN_ADV_MST   (UINT64_C(1) << 35)
 
#define LL_SUP_STATE_HI_DUTY_DIR_ADV_MST   (UINT64_C(1) << 36)
 
#define LL_SUP_STATE_LO_DUTY_DIR_ADV_MST   (UINT64_C(1) << 37)
 
#define LL_SUP_STATE_CONN_ADV_SLV   (UINT64_C(1) << 38)
 
#define LL_SUP_STATE_HI_DUTY_DIR_ADV_SLV   (UINT64_C(1) << 39)
 
#define LL_SUP_STATE_LO_DUTY_DIR_ADV_SLV   (UINT64_C(1) << 40)
 
#define LL_SUP_STATE_INIT_SLV   (UINT64_C(1) << 41)
 
#define LL_FEAT_ENCRYPTION   (UINT64_C(1) << 0)
 
#define LL_FEAT_CONN_PARAM_REQ_PROC   (UINT64_C(1) << 1)
 
#define LL_FEAT_EXT_REJECT_IND   (UINT64_C(1) << 2)
 
#define LL_FEAT_SLV_INIT_FEAT_EXCH   (UINT64_C(1) << 3)
 
#define LL_FEAT_LE_PING   (UINT64_C(1) << 4)
 
#define LL_FEAT_DATA_LEN_EXT   (UINT64_C(1) << 5)
 
#define LL_FEAT_PRIVACY   (UINT64_C(1) << 6)
 
#define LL_FEAT_EXT_SCAN_FILT_POLICY   (UINT64_C(1) << 7)
 
#define LL_FEAT_LE_2M_PHY   (UINT64_C(1) << 8)
 
#define LL_FEAT_STABLE_MOD_IDX_TRANSMITTER   (UINT64_C(1) << 9)
 
#define LL_FEAT_STABLE_MOD_IDX_RECEIVER   (UINT64_C(1) << 10)
 
#define LL_FEAT_LE_CODED_PHY   (UINT64_C(1) << 11)
 
#define LL_FEAT_LE_EXT_ADV   (UINT64_C(1) << 12)
 
#define LL_FEAT_LE_PER_ADV   (UINT64_C(1) << 13)
 
#define LL_FEAT_CH_SEL_2   (UINT64_C(1) << 14)
 
#define LL_FEAT_LE_POWER_CLASS_1   (UINT64_C(1) << 15)
 
#define LL_FEAT_MIN_NUM_USED_CHAN   (UINT64_C(1) << 16)
 
#define LL_FEAT_CONN_CTE_REQ   (UINT64_C(1) << 17)
 
#define LL_FEAT_CONN_CTE_RSP   (UINT64_C(1) << 18)
 
#define LL_FEAT_CONNLESS_CTE_TRANS   (UINT64_C(1) << 19)
 
#define LL_FEAT_CONNLESS_CTE_RECV   (UINT64_C(1) << 20)
 
#define LL_FEAT_ANTENNA_SWITCH_AOD   (UINT64_C(1) << 21)
 
#define LL_FEAT_ANTENNA_SWITCH_AOA   (UINT64_C(1) << 22)
 
#define LL_FEAT_RECV_CTE   (UINT64_C(1) << 23)
 
#define LL_FEAT_PAST_SENDER   (UINT64_C(1) << 24)
 
#define LL_FEAT_PAST_RECIPIENT   (UINT64_C(1) << 25)
 
#define LL_FEAT_SCA_UPDATE   (UINT64_C(1) << 26)
 
#define LL_FEAT_REMOTE_PUB_KEY_VALIDATION   (UINT64_C(1) << 27)
 
#define LL_FEAT_CIS_MASTER_ROLE   (UINT64_C(1) << 28)
 
#define LL_FEAT_CIS_SLAVE_ROLE   (UINT64_C(1) << 29)
 
#define LL_FEAT_ISO_BROADCASTER   (UINT64_C(1) << 30)
 
#define LL_FEAT_ISO_SYNC   (UINT64_C(1) << 31)
 
#define LL_FEAT_ALL_MASK   (UINT64_C(0xFF01FFFF))
 
#define LL_ADDR_RANDOM_BIT   LL_ADDR_RANDOM
 
#define LL_ADDR_IDENTITY_BIT   LL_ADDR_PUBLIC_IDENTITY
 
#define LL_ADV_EVT_PROP_NON_CONN_NON_SCAN   0
 
#define LL_PER_ADV_CREATE_SYNC_OPTIONS_BITS   0x03
 Periodic advertising create sync options valid bits.
 
#define LL_FEAT_LEN   8
 

Typedefs

typedef bool_t(* llEvtCback_t) (LlEvt_t *pEvent)
 Event callback.
 
typedef void(* llAclCback_t) (uint16_t handle, uint8_t numBufs)
 ACL callback.
 
typedef void(* llIsoCback_t) (uint16_t handle, uint8_t numBufs)
 ISO callback.
 

Enumerations

enum  {
  LL_SUCCESS = 0x00, LL_ERROR_CODE_UNKNOWN_HCI_CMD = 0x01, LL_ERROR_CODE_UNKNOWN_CONN_ID = 0x02, LL_ERROR_CODE_HW_FAILURE = 0x03,
  LL_ERROR_CODE_PAGE_TIMEOUT = 0x04, LL_ERROR_CODE_AUTH_FAILURE = 0x05, LL_ERROR_CODE_PIN_KEY_MISSING = 0x06, LL_ERROR_CODE_MEM_CAP_EXCEEDED = 0x07,
  LL_ERROR_CODE_CONN_TIMEOUT = 0x08, LL_ERROR_CODE_CONN_LIMIT_EXCEEDED = 0x09, LL_ERROR_CODE_SYNCH_CONN_LIMIT_EXCEEDED = 0x0A, LL_ERROR_CODE_ACL_CONN_ALREADY_EXISTS = 0x0B,
  LL_ERROR_CODE_CMD_DISALLOWED = 0x0C, LL_ERROR_CODE_CONN_REJ_LIMITED_RESOURCES = 0x0D, LL_ERROR_CODE_CONN_REJECTED_SECURITY_REASONS = 0x0E, LL_ERROR_CODE_CONN_REJECTED_UNACCEPTABLE_BDADDR = 0x0F,
  LL_ERROR_CODE_CONN_ACCEPT_TIMEOUT_EXCEEDED = 0x10, LL_ERROR_CODE_UNSUPPORTED_FEATURE_PARAM_VALUE = 0x11, LL_ERROR_CODE_INVALID_HCI_CMD_PARAMS = 0x12, LL_ERROR_CODE_REMOTE_USER_TERM_CONN = 0x13,
  LL_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_LOW_RESOURCES = 0x14, LL_ERROR_CODE_REMOTE_DEVICE_TERM_CONN_POWER_OFF = 0x15, LL_ERROR_CODE_CONN_TERM_BY_LOCAL_HOST = 0x16, LL_ERROR_CODE_REPEATED_ATTEMPTS = 0x17,
  LL_ERROR_CODE_PAIRING_NOT_ALLOWED = 0x18, LL_ERROR_CODE_UNKNOWN_LMP_PDU = 0x19, LL_ERROR_CODE_UNSUPPORTED_REMOTE_FEATURE = 0x1A, LL_ERROR_CODE_SCO_OFFSET_REJ = 0x1B,
  LL_ERROR_CODE_SCO_INTERVAL_REJ = 0x1C, LL_ERROR_CODE_SCO_AIR_MODE_REJ = 0x1D, LL_ERROR_CODE_INVALID_LMP_PARAMS = 0x1E, LL_ERROR_CODE_UNSPECIFIED_ERROR = 0x1F,
  LL_ERROR_CODE_UNSUPPORTED_LMP_PARAM_VAL = 0x20, LL_ERROR_CODE_ROLE_CHANGE_NOT_ALLOWED = 0x21, LL_ERROR_CODE_LMP_LL_RESP_TIMEOUT = 0x22, LL_ERROR_CODE_LMP_ERR_TRANSACTION_COLLISION = 0x23,
  LL_ERROR_CODE_LMP_PDU_NOT_ALLOWED = 0x24, LL_ERROR_CODE_ENCRYPT_MODE_NOT_ACCEPTABLE = 0x25, LL_ERROR_CODE_LINK_KEY_CAN_NOT_BE_CHANGED = 0x26, LL_ERROR_CODE_REQ_QOS_NOT_SUPPORTED = 0x27,
  LL_ERROR_CODE_INSTANT_PASSED = 0x28, LL_ERROR_CODE_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED = 0x29, LL_ERROR_CODE_DIFFERENT_TRANSACTION_COLLISION = 0x2A, LL_ERROR_CODE_RESERVED1 = 0x2B,
  LL_ERROR_CODE_QOS_UNACCEPTABLE_PARAM = 0x2C, LL_ERROR_CODE_QOS_REJ = 0x2D, LL_ERROR_CODE_CHAN_ASSESSMENT_NOT_SUPPORTED = 0x2E, LL_ERROR_CODE_INSUFFICIENT_SECURITY = 0x2F,
  LL_ERROR_CODE_PARAM_OUT_OF_MANDATORY_RANGE = 0x30, LL_ERROR_CODE_RESERVED2 = 0x31, LL_ERROR_CODE_ROLE_SWITCH_PENDING = 0x32, LL_ERROR_CODE_RESERVED3 = 0x33,
  LL_ERROR_CODE_RESERVED_SLOT_VIOLATION = 0x34, LL_ERROR_CODE_ROLE_SWITCH_FAILED = 0x35, LL_ERROR_CODE_EXTENDED_INQUIRY_RESP_TOO_LARGE = 0x36, LL_ERROR_CODE_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST = 0x37,
  LL_ERROR_CODE_HOST_BUSY_PAIRING = 0x38, LL_ERROR_CODE_CONN_REJ_NO_SUITABLE_CHAN_FOUND = 0x39, LL_ERROR_CODE_CONTROLLER_BUSY = 0x3A, LL_ERROR_CODE_UNACCEPTABLE_CONN_INTERVAL = 0x3B,
  LL_ERROR_CODE_ADV_TIMEOUT = 0x3C, LL_ERROR_CODE_CONN_TERM_MIC_FAILURE = 0x3D, LL_ERROR_CODE_CONN_FAILED_TO_ESTABLISH = 0x3E, LL_ERROR_CODE_MAC_CONN_FAILED = 0x3F,
  LL_ERROR_CODE_COARSE_CLK_ADJ_REJ = 0x40, LL_ERROR_CODE_TYPE0_SUBMAP_NOT_DEF = 0x41, LL_ERROR_CODE_UNKNOWN_ADV_ID = 0x42, LL_ERROR_CODE_LIMIT_REACHED = 0x43,
  LL_ERROR_CODE_OP_CANCELLED_BY_HOST = 0x44, LL_ERROR_CODE_PKT_TOO_LONG = 0x45
}
 The following status values are used in the LL API.
 
enum  { LL_ROLE_MASTER = 0, LL_ROLE_SLAVE = 1 }
 This parameter identifies the device role. More...
 
enum  {
  LL_OP_MODE_FLAG_ENA_VER_LLCP_STARTUP = (1 << 0), LL_OP_MODE_FLAG_SLV_REQ_IMMED_ACK = (1 << 1), LL_OP_MODE_FLAG_BYPASS_CE_GUARD = (1 << 2), LL_OP_MODE_FLAG_MST_RETX_AFTER_RX_NACK = (1 << 3),
  LL_OP_MODE_FLAG_MST_IGNORE_CP_RSP = (1 << 4), LL_OP_MODE_FLAG_MST_UNCOND_CP_RSP = (1 << 5), LL_OP_MODE_FLAG_ENA_LEN_LLCP_STARTUP = (1 << 6), LL_OP_MODE_FLAG_REQ_SYM_PHY = (1 << 7),
  LL_OP_MODE_FLAG_ENA_FEAT_LLCP_STARTUP = (1 << 8), LL_OP_MODE_FLAG_SLV_DELAY_LLCP_STARTUP = (1 << 9), LL_OP_MODE_FLAG_ENA_SLV_LATENCY_WAKEUP = (1 << 10), LL_OP_MODE_FLAG_ENA_SLV_AUX_SCAN_RSP_ADI = (1 << 11),
  LL_OP_MODE_FLAG_ENA_MST_CIS_NULL_PDU = (1 << 12), LL_OP_MODE_FLAG_ENA_SLV_AUX_IND_ADVA = (1 << 13), LL_OP_MODE_FLAG_ENA_ADV_CHAN_RAND = (1 << 14), LL_OP_MODE_FLAG_ENA_ADV_DLY = (1 << 16),
  LL_OP_MODE_FLAG_ENA_SCAN_BACKOFF = (1 << 17), LL_OP_MODE_FLAG_ENA_WW = (1 << 18), LL_OP_MODE_FLAG_ENA_SLV_LATENCY = (1 << 19), LL_OP_MODE_FLAG_ENA_LLCP_TIMER = (1 << 20),
  LL_OP_MODE_FLAG_IGNORE_CRC_ERR_TS = (1 << 21)
}
 Operational mode flags. More...
 
enum  {
  LL_ADV_CONN_UNDIRECT = 0, LL_ADV_CONN_DIRECT_HIGH_DUTY = 1, LL_ADV_SCAN_UNDIRECT = 2, LL_ADV_NONCONN_UNDIRECT = 3,
  LL_ADV_CONN_DIRECT_LOW_DUTY = 4
}
 The advertising type indicates the connectable and discoverable nature of the advertising packets transmitted by a device. More...
 
enum  {
  LL_ADDR_PUBLIC = 0, LL_ADDR_RANDOM = 1, LL_ADDR_PUBLIC_IDENTITY = 2, LL_ADDR_RANDOM_IDENTITY = 3,
  LL_ADDR_RANDOM_UNRESOLVABLE = 0xFE, LL_ADDR_ANONYMOUS = 0xFF
}
 The address type indicates whether an address is public or random. More...
 
enum  { LL_ADV_CHAN_37_BIT = (1 << 0), LL_ADV_CHAN_38_BIT = (1 << 1), LL_ADV_CHAN_39_BIT = (1 << 2), LL_ADV_CHAN_ALL = 0x7 }
 Advertising channel bit. More...
 
enum  { LL_ADV_FILTER_NONE = 0, LL_ADV_FILTER_SCAN_WL_BIT = 1, LL_ADV_FILTER_CONN_WL_BIT = 2, LL_ADV_FILTER_WL_ONLY = 3 }
 Advertising filter policy. More...
 
enum  {
  LL_ADV_EVT_PROP_CONN_ADV_BIT = (1 << 0), LL_ADV_EVT_PROP_SCAN_ADV_BIT = (1 << 1), LL_ADV_EVT_PROP_DIRECT_ADV_BIT = (1 << 2), LL_ADV_EVT_PROP_HIGH_DUTY_ADV_BIT = (1 << 3),
  LL_ADV_EVT_PROP_LEGACY_ADV_BIT = (1 << 4), LL_ADV_EVT_PROP_OMIT_AA_BIT = (1 << 5), LL_ADV_EVT_PROP_TX_PWR_BIT = (1 << 6)
}
 Advertising event properties. More...
 
enum  {
  LL_ADV_DATA_OP_FRAG_INTER = 0, LL_ADV_DATA_OP_FRAG_FIRST = 1, LL_ADV_DATA_OP_FRAG_LAST = 2, LL_ADV_DATA_OP_COMP = 3,
  LL_ADV_DATA_OP_UNCHANGED = 4
}
 Advertising data operation. More...
 
enum  { LL_ADV_DATA_FRAG_ALLOW = 0, LL_ADV_DATA_FRAG_DISALLOW = 1 }
 Advertising data fragment preference. More...
 
enum  { LL_SCAN_PASSIVE = 0, LL_SCAN_ACTIVE = 1 }
 Type of scan. More...
 
enum  { LL_INIT_FILTER_PEER = 0, LL_INIT_FILTER_WL = 1, LL_INIT_FILTER_TOTAL }
 Init filter policy. More...
 
enum  { LL_SCAN_FILTER_NONE = 0, LL_SCAN_FILTER_WL_BIT = 1, LL_SCAN_FILTER_RES_INIT_BIT = 2, LL_SCAN_FILTER_WL_OR_RES_INIT = 3 }
 Scan filter policy. More...
 
enum  { LL_PER_SCAN_FILTER_NONE = 0, LL_PER_SCAN_FILTER_PL_BIT = 1 }
 Periodic scan filter policy. More...
 
enum  { LL_SCAN_FILTER_DUP_DISABLE = 0x00, LL_SCAN_FILTER_DUP_ENABLE_ONCE = 0x01, LL_SCAN_FILTER_DUP_ENABLE_PERIODIC = 0x02 }
 Scan filter modes for duplicate report. More...
 
enum  {
  LL_RPT_TYPE_ADV_IND = 0x00, LL_RPT_TYPE_ADV_DIRECT_IND = 0x01, LL_RPT_TYPE_ADV_SCAN_IND = 0x02, LL_RPT_TYPE_ADV_NONCONN_IND = 0x03,
  LL_RPT_TYPE_SCAN_RSP = 0x04
}
 Advertising report event types. More...
 
enum  {
  LL_MCA_500_PPM = 0x00, LL_MCA_250_PPM = 0x01, LL_MCA_150_PPM = 0x02, LL_MCA_100_PPM = 0x03,
  LL_MCA_75_PPM = 0x04, LL_MCA_50_PPM = 0x05, LL_MCA_30_PPM = 0x06, LL_MCA_20_PPM = 0x07
}
 Master clock accuracy. More...
 
enum  { LL_PHYS_NONE = 0, LL_PHYS_LE_1M_BIT = (1 << 0), LL_PHYS_LE_2M_BIT = (1 << 1), LL_PHYS_LE_CODED_BIT = (1 << 2) }
 PHYS specification. More...
 
enum  { LL_ALL_PHY_ALL_PREFERENCES = 0, LL_ALL_PHY_TX_PREFERENCE_BIT = (1 << 0), LL_ALL_PHY_RX_PREFERENCE_BIT = (1 << 1) }
 All PHYs preference. More...
 
enum  { LL_PHY_OPTIONS_NONE = 0, LL_PHY_OPTIONS_S2_PREFERRED = 1, LL_PHY_OPTIONS_S8_PREFERRED = 2 }
 PHY options. More...
 
enum  { LL_PHY_NONE = 0, LL_PHY_LE_1M = 1, LL_PHY_LE_2M = 2, LL_PHY_LE_CODED = 3 }
 PHY types. More...
 
enum  { LL_PRIV_MODE_NETWORK = 0, LL_PRIV_MODE_DEVICE = 1 }
 Privacy modes. More...
 
enum  { LL_CH_SEL_1 = 0, LL_CH_SEL_2 = 1 }
 Channel selection algorithm methods. More...
 
enum  { LL_TX_PWR_LVL_TYPE_CURRENT = 0x00, LL_TX_PWR_LVL_TYPE_MAX = 0x01 }
 Tx power level type. More...
 
enum  { LL_PACKING_SEQUENTIAL = 0, LL_PACKING_INTERLEAVED = 1 }
 Packing scheme. More...
 
enum  { LL_FRAMING_UNFRAMED = 0, LL_FRAMING_FRAMED = 1 }
 Framing. More...
 
enum  { LL_NONCE_MODE_PKT_CNTR = 0x00, LL_NONCE_MODE_EVT_CNTR = 0x01 }
 Nonce mode. More...
 
enum  {
  LL_TEST_PKT_TYPE_PRBS9 = 0x00, LL_TEST_PKT_TYPE_0F = 0x01, LL_TEST_PKT_TYPE_55 = 0x02, LL_TEST_PKT_TYPE_PRBS15 = 0x03,
  LL_TEST_PKT_TYPE_FF = 0x04, LL_TEST_PKT_TYPE_00 = 0x05, LL_TEST_PKT_TYPE_F0 = 0x06, LL_TEST_PKT_TYPE_AA = 0x07
}
 Test packet payload type. More...
 
enum  {
  LL_TEST_PHY_LE_1M = 0x01, LL_TEST_PHY_LE_2M = 0x02, LL_TEST_PHY_LE_CODED = 0x03, LL_TEST_PHY_LE_CODED_S8 = 0x03,
  LL_TEST_PHY_LE_CODED_S2 = 0x04
}
 Test PHY type. More...
 
enum  { LL_TEST_MOD_IDX_STANDARD = 0x00, LL_TEST_MOD_IDX_STABLE = 0x01 }
 Test modulation index. More...
 
enum  {
  LL_ERROR_IND, LL_RESET_CNF, LL_ADV_REPORT_IND, LL_ADV_ENABLE_CNF,
  LL_SCAN_ENABLE_CNF, LL_CONN_IND, LL_DISCONNECT_IND, LL_CONN_UPDATE_IND,
  LL_CREATE_CONN_CANCEL_CNF, LL_READ_REMOTE_VER_INFO_CNF, LL_READ_REMOTE_FEAT_CNF, LL_ENC_CHANGE_IND,
  LL_ENC_KEY_REFRESH_IND, LL_LTK_REQ_IND, LL_LTK_REQ_NEG_REPLY_CNF, LL_LTK_REQ_REPLY_CNF,
  LL_REM_CONN_PARAM_IND, LL_AUTH_PAYLOAD_TIMEOUT_IND, LL_DATA_LEN_CHANGE_IND, LL_READ_LOCAL_P256_PUB_KEY_CMPL_IND,
  LL_GENERATE_DHKEY_CMPL_IND, LL_SCAN_REPORT_IND, LL_PHY_UPDATE_IND, LL_EXT_ADV_REPORT_IND,
  LL_EXT_SCAN_ENABLE_CNF, LL_SCAN_TIMEOUT_IND, LL_SCAN_REQ_RCVD_IND, LL_EXT_ADV_ENABLE_CNF,
  LL_ADV_SET_TERM_IND, LL_PER_ADV_ENABLE_CNF, LL_PER_ADV_SYNC_ESTD_IND, LL_PER_ADV_SYNC_LOST_IND,
  LL_PER_ADV_REPORT_IND, LL_CH_SEL_ALGO_IND, LL_CONNLESS_IQ_REPORT_IND, LL_CONN_IQ_REPORT_IND,
  LL_CTE_REQ_FAILED_IND, LL_PER_SYNC_TRSF_RCVD_IND, LL_CIS_EST_IND, LL_CIS_REQ_IND,
  LL_REQ_PEER_SCA_IND
}
 Link control callback interface events. More...
 
enum  {
  LL_RPT_EVT_CONN_ADV_BIT = (1 << 0), LL_RPT_EVT_SCAN_ADV_BIT = (1 << 1), LL_RPT_EVT_DIRECT_ADV_BIT = (1 << 2), LL_RPT_EVT_SCAN_RSP_BIT = (1 << 3),
  LL_RPT_EVT_LEGACY_ADV_BIT = (1 << 4)
}
 Extended advertising report event types. More...
 
enum  { LL_RPT_DATA_CMPL = 0x00, LL_RPT_DATA_INC_MORE = 0x01, LL_RPT_DATA_INC_TRUNC = 0x02 }
 Extended advertising report data status. More...
 
enum  { LL_SID_NO_ADI = 0xFF }
 Special SID values. More...
 

Functions

void LlGetDefaultRunTimeCfg (LlRtCfg_t *pCfg)
 Get default runtime configuration values. More...
 
void LlInitRunTimeCfg (const LlRtCfg_t *pCfg)
 Initialize runtime configuration. More...
 
uint16_t LlInitConnMem (uint8_t *pFreeMem, uint32_t freeMemSize)
 Initialize memory for connections. More...
 
uint16_t LlInitExtAdvMem (uint8_t *pFreeMem, uint32_t freeMemSize)
 Initialize memory for extended advertising. More...
 
uint16_t LlInitExtScanMem (uint8_t *pFreeMem, uint32_t freeMemSize)
 Initialize memory for extended scanning. More...
 
void LlAdvSlaveInit (void)
 Initialize LL subsystem for operation as an advertising slave. More...
 
void LlExtAdvSlaveInit (void)
 Initialize LL subsystem for operation for extended advertising slave. More...
 
void LlConnSlaveInit (void)
 Initialize LL subsystem for operation as a connectable slave. More...
 
void LlEncConnSlaveInit (void)
 Initialize LL subsystem for operation as a encryptable connectable slave. More...
 
void LlScanMasterInit (void)
 Initialize LL subsystem for operation as a scanning master. More...
 
void LlExtScanMasterInit (void)
 Initialize LL subsystem for operation for extended scanning master. More...
 
void LlInitMasterInit (void)
 Initialize LL subsystem for operation as an initiating master. More...
 
void LlExtInitMasterInit (void)
 Initialize LL subsystem for operation as an extended initiating master. More...
 
void LlConnMasterInit (void)
 Initialize LL subsystem for operation as a connectable master. More...
 
void LlEncConnMasterInit (void)
 Initialize LL subsystem for operation as a encryptable connectable slave. More...
 
void LlPrivInit (void)
 Initialize LL subsystem for operation with privacy. More...
 
void LlScInit (void)
 Initialize LL subsystem for secure connections. More...
 
void LlPhySlaveInit (void)
 Initialize LL subsystem for PHY features (slave). More...
 
void LlPhyMasterInit (void)
 Initialize LL subsystem for PHY features (master). More...
 
void LlChannelSelection2Init (void)
 Initialize LL subsystem for secure connections. More...
 
void LlTestInit (void)
 Initialize LL subsystem for test modes. More...
 
void LlHandlerInit (wsfHandlerId_t handlerId)
 Initialize LL subsystem with task handler. More...
 
void LlHandler (wsfEventMask_t event, wsfMsgHdr_t *pMsg)
 LL message dispatch handler. More...
 
void LlReset (void)
 Reset LL subsystem. More...
 
void LlEvtRegister (llEvtCback_t evtCback)
 Register LL event handler. More...
 
void LlAclRegister (llAclCback_t sendCompCback, llAclCback_t recvPendCback)
 Register ACL handler. More...
 
void LlIsoRegister (llIsoCback_t sendCompCback, llIsoCback_t recvPendCback)
 Register ISO handler. More...
 
void LlSetBdAddr (const uint8_t *pAddr)
 Set Bluetooth device address. More...
 
void LlGetBdAddr (uint8_t *pAddr)
 Get Bluetooth device address. More...
 
uint8_t LlSetRandAddr (const uint8_t *pAddr)
 Set random device address. More...
 
uint8_t LlGetRandAddr (uint8_t *pAddr)
 Get random device address. More...
 
void LlGetVersion (uint16_t *pCompId, uint8_t *pBtVer, uint16_t *pImplRev)
 Get versions. More...
 
void LlGetSupStates (uint8_t *pStates)
 Get supported states. More...
 
void LlGetFeatures (uint8_t *pFeatures)
 Get features. More...
 
uint8_t LlSetFeatures (const uint8_t *pFeatures)
 Set features. More...
 
uint8_t LlGetRandNum (uint8_t *pRandNum)
 Get random number. More...
 
uint8_t LlGetWhitelistSize (void)
 Get white list size. More...
 
uint8_t LlClearWhitelist (void)
 Clear all white list entries. More...
 
uint8_t LlAddDeviceToWhitelist (uint8_t addrType, bdAddr_t pAddr)
 Add device to the white list. More...
 
uint8_t LlRemoveDeviceFromWhitelist (uint8_t addrType, bdAddr_t pAddr)
 Remove device from the white list. More...
 
uint8_t LlAddDeviceToResolvingList (uint8_t peerAddrType, const uint8_t *pPeerIdentityAddr, const uint8_t *pPeerIrk, const uint8_t *pLocalIrk)
 Add device to resolving list. More...
 
uint8_t LlRemoveDeviceFromResolvingList (uint8_t peerAddrType, const uint8_t *pPeerIdentityAddr)
 Remove device from resolving list. More...
 
uint8_t LlClearResolvingList (void)
 Clear resolving list. More...
 
uint8_t LlReadResolvingListSize (uint8_t *pSize)
 Read resolving list size. More...
 
uint8_t LlReadPeerResolvableAddr (uint8_t addrType, const uint8_t *pIdentityAddr, uint8_t *pRpa)
 Read peer resolvable address. More...
 
uint8_t LlReadLocalResolvableAddr (uint8_t addrType, const uint8_t *pIdentityAddr, uint8_t *pRpa)
 Read local resolvable address. More...
 
uint8_t LlSetAddrResolutionEnable (uint8_t enable)
 Enable or disable address resolution. More...
 
uint8_t LlSetResolvablePrivateAddrTimeout (uint16_t rpaTimeout)
 Set resolvable private address timeout. More...
 
uint8_t LlSetPrivacyMode (uint8_t peerAddrType, const uint8_t *pPeerIdentityAddr, uint8_t privMode)
 Set privacy mode. More...
 
uint8_t LlGenerateP256KeyPair (void)
 Generate a P-256 public/private key pair. More...
 
uint8_t LlGenerateDhKey (const uint8_t pubKey_x[LL_ECC_KEY_LEN], const uint8_t pubKey_y[LL_ECC_KEY_LEN])
 Generate a Diffie-Hellman key. More...
 
uint8_t LlGenerateDhKeyV2 (uint8_t pubKey_x[LL_ECC_KEY_LEN], uint8_t pubKey_y[LL_ECC_KEY_LEN], uint8_t keyType)
 Generate a Diffie-Hellman key. More...
 
uint8_t LlSetP256PrivateKey (const uint8_t privKey[LL_ECC_KEY_LEN])
 Set P-256 private key for debug purposes. More...
 
uint8_t LlSetValidatePublicKeyMode (uint8_t validateMode)
 Set validate public key mode. More...
 
uint8_t LlSetChannelClass (const uint8_t *pChanMap)
 Set channel class. More...
 
uint8_t LlSetHciSupCmd (uint8_t byte, uint8_t bit, bool_t enable)
 Set HCI supported command. More...
 
uint8_t LlSetOpFlags (uint32_t flags, bool_t enable)
 Set operational mode flags. More...
 
void LlSetDefaultExtAdvTxPhyOptions (const uint8_t phyOptions)
 Set the default Ext adv TX PHY options. More...
 
void LlSetAdvTxPower (int8_t advTxPwr)
 Set advertising transmit power. More...
 
uint8_t LlGetAdvTxPower (int8_t *pAdvTxPwr)
 Get advertising transmit power. More...
 
uint8_t LlSetAdvParam (uint16_t advIntervalMin, uint16_t advIntervalMax, uint8_t advType, uint8_t ownAddrType, uint8_t peerAddrType, const uint8_t *pPeerAddr, uint8_t advChanMap, uint8_t advFiltPolicy)
 Set advertising parameter. More...
 
uint8_t LlSetAdvData (uint8_t len, const uint8_t *pData)
 Set advertising data. More...
 
uint8_t LlSetScanRespData (uint8_t len, const uint8_t *pData)
 Set scan response data. More...
 
void LlAdvEnable (uint8_t enable)
 Advertising enable. More...
 
uint8_t LlSetAdvSetRandAddr (uint8_t handle, const uint8_t *pAddr)
 Set advertising set random device address. More...
 
uint64_t LlGetPeriodicChanMap (uint16_t handle, bool_t isAdv)
 Get periodic channel map. More...
 
uint8_t LlGetAdvSetRandAddr (uint8_t handle, uint8_t *pAddr)
 Get advertising set random device address. More...
 
uint8_t LlSetExtAdvParam (uint8_t handle, LlExtAdvParam_t *pExtAdvParam)
 Set extended advertising parameters. More...
 
uint8_t LlGetExtAdvTxPowerLevel (uint16_t handle, int8_t *pLevel)
 Get extended advertising TX power level. More...
 
uint8_t LlSetExtAdvData (uint8_t handle, uint8_t op, uint8_t fragPref, uint8_t len, const uint8_t *pData)
 Set extended advertising data. More...
 
uint8_t LlSetExtScanRespData (uint8_t handle, uint8_t op, uint8_t fragPref, uint8_t len, const uint8_t *pData)
 Set extended scan response data. More...
 
void LlExtAdvEnable (uint8_t enable, uint8_t numAdvSets, LlExtAdvEnableParam_t enaParam[])
 Extended advertising enable. More...
 
uint8_t LlReadMaxAdvDataLen (uint16_t *pLen)
 Read maximum advertising data length. More...
 
uint8_t LlReadNumSupAdvSets (uint8_t *pNumSets)
 Read number of supported advertising sets. More...
 
uint8_t LlRemoveAdvSet (uint8_t handle)
 Remove advertising set. More...
 
uint8_t LlClearAdvSets (void)
 Clear advertising sets. More...
 
uint8_t LlSetPeriodicAdvParam (uint8_t handle, LlPerAdvParam_t *pPerAdvParam)
 Set periodic advertising parameters. More...
 
uint8_t LlSetPeriodicAdvData (uint8_t handle, uint8_t op, uint8_t len, const uint8_t *pData)
 Set periodic advertising data. More...
 
void LlSetPeriodicAdvEnable (uint8_t enable, uint8_t handle)
 Set periodic advertising enable. More...
 
uint8_t LlSetAuxOffsetDelay (uint8_t handle, uint32_t delayUsec)
 Set auxiliary packet offset delay. More...
 
uint8_t LlSetExtAdvDataFragLen (uint8_t handle, uint8_t fragLen)
 Set extended advertising data fragmentation length. More...
 
uint8_t LlSetExtAdvTxPhyOptions (uint8_t handle, uint8_t priPhyOpts, uint8_t secPhyOpts)
 Set extended advertising transmit PHY options. More...
 
void LlReadSupTxPower (int8_t *pMinTxPwr, int8_t *pMaxTxPwr)
 Read supported transmit power. More...
 
void LlReadRfPathComp (int16_t *pTxPathComp, int16_t *pRxPathComp)
 Read RF path compensation. More...
 
uint8_t LlWriteRfPathComp (int16_t txPathComp, int16_t rxPathComp)
 Write RF path compensation. More...
 
void LlScanReportEnable (uint8_t enable)
 Scan report enable. More...
 
uint8_t LlSetSetScanChanMap (uint8_t chanMap)
 Set scan channel map. More...
 
uint8_t LlSetScanParam (const LlScanParam_t *pParam)
 Set scan parameters. More...
 
void LlScanEnable (uint8_t enable, uint8_t filterDup)
 Scan enable. More...
 
uint8_t LlSetExtScanParam (uint8_t ownAddrType, uint8_t scanFiltPolicy, uint8_t scanPhys, const LlExtScanParam_t param[])
 Set extended scanning parameters. More...
 
void LlExtScanEnable (uint8_t enable, uint8_t filterDup, uint16_t duration, uint16_t period)
 Extended scan enable. More...
 
uint8_t LlPeriodicAdvCreateSync (const LlPerAdvCreateSyncCmd_t *pParam)
 Create synchronization of periodic advertising. More...
 
uint8_t LlPeriodicAdvCreateSyncCancel (void)
 Cancel pending synchronization of periodic advertising. More...
 
uint8_t LlPeriodicAdvTerminateSync (uint16_t syncHandle)
 Stop synchronization of periodic advertising. More...
 
uint8_t LlAddDeviceToPeriodicAdvList (const LlDevicePerAdvList_t *pParam)
 Add device to periodic advertiser list. More...
 
uint8_t LlRemoveDeviceFromPeriodicAdvList (const LlDevicePerAdvList_t *pParam)
 Remove device from periodic advertiser list command. More...
 
uint8_t LlClearPeriodicAdvList (void)
 Clear all devices in periodic advertiser list command. More...
 
uint8_t LlReadPeriodicAdvListSize (uint8_t *pListSize)
 Read total number of devices in periodic advertiser list command. More...
 
uint8_t LlSetPeriodicAdvRcvEnable (uint16_t syncHandle, uint8_t enable)
 Enable or disable reports for the periodic advertising sync. More...
 
void LlPastInit (void)
 Initialize LL subsystem for PAST(Periodic advertising sync transfer). More...
 
uint8_t LlPeriodicAdvSyncTransfer (uint16_t connHandle, uint16_t serviceData, uint16_t syncHandle)
 Send sync info about periodic advertising to a connected device. More...
 
uint8_t LlPeriodicAdvSetInfoTransfer (uint16_t connHandle, uint16_t serviceData, uint8_t advHandle)
 Send sync info about periodic adv in an advertising set to a connected device. More...
 
uint8_t LlSetPeriodicAdvSyncTransParams (uint16_t connHandle, uint8_t mode, uint16_t skip, uint16_t syncTimeout, uint8_t cteType)
 Set periodic advertising sync transfer parameters. More...
 
uint8_t LlSetDefaultPeriodicAdvSyncTransParams (uint8_t mode, uint16_t skip, uint16_t syncTimeout, uint8_t cteType)
 Set default periodic advertising sync transfer parameters. More...
 
uint8_t LlDisconnect (uint16_t handle, uint8_t reason)
 Disconnect a connection. More...
 
uint8_t LlSetConnOpFlags (uint16_t handle, uint32_t flags, bool_t enable)
 Set connection's operational mode flags. More...
 
uint8_t LlReadRemoteFeat (uint16_t handle)
 Read remote features. More...
 
uint8_t LlReadRemoteVerInfo (uint16_t handle)
 Read remote version information. More...
 
uint8_t LlGetRssi (uint16_t handle, int8_t *pRssi)
 Get RSSI of a connection. More...
 
uint8_t LlGetTxPowerLevel (uint16_t handle, uint8_t type, int8_t *pLevel)
 Get connection's TX power level. More...
 
uint8_t LlSetTxPowerLevel (uint16_t handle, int8_t level)
 Set connection's TX power level. More...
 
uint8_t LlConnUpdate (uint16_t handle, const LlConnSpec_t *pConnSpec)
 Update connection parameters. More...
 
uint8_t LlRemoteConnParamReqReply (uint16_t handle, const LlConnSpec_t *pConnSpec)
 Remote connection parameter request reply. More...
 
uint8_t LlRemoteConnParamReqNegReply (uint16_t handle, uint8_t reason)
 Remote connection parameter request negative reply. More...
 
uint8_t LlSetChannelMap (uint16_t handle, const uint8_t *pChanMap)
 Set connection's channel map. More...
 
uint8_t LlGetChannelMap (uint16_t handle, uint8_t *pChanMap)
 Get connection's channel map. More...
 
uint8_t LlSetDataLen (uint16_t handle, uint16_t txLen, uint16_t txTime)
 Set data length. More...
 
void LlReadDefaultDataLen (uint16_t *pMaxTxLen, uint16_t *pMaxTxTime)
 Read default data length. More...
 
uint8_t LlWriteDefaultDataLen (uint16_t maxTxLen, uint16_t maxTxTime)
 Write default data length. More...
 
void LlReadMaximumDataLen (uint16_t *pMaxTxLen, uint16_t *pMaxTxTime, uint16_t *pMaxRxLen, uint16_t *pMaxRxTime)
 Read maximum data length. More...
 
uint8_t LlReadPhy (uint16_t handle, uint8_t *pTxPhy, uint8_t *pRxPhy)
 Read current transmitter PHY and receive PHY. More...
 
uint8_t LlSetDefaultPhy (uint8_t allPhys, uint8_t txPhys, uint8_t rxPhys)
 Set default PHYs. More...
 
uint8_t LlSetPhy (uint16_t handle, uint8_t allPhys, uint8_t txPhys, uint8_t rxPhys, uint16_t phyOptions)
 Set PHY for a connection. More...
 
uint8_t LlSetLocalMinUsedChan (uint8_t phys, int8_t pwrThres, uint8_t minUsedCh)
 Set local minimum number of used channels. More...
 
uint8_t LlGetPeerMinUsedChan (uint16_t handle, uint8_t *pPeerMinUsedChan)
 Get peer minimum number of used channels. More...
 
uint8_t LlRequestPeerSca (uint16_t aclHandle)
 Used to read the sleep clock accuracy of the peer device. More...
 
uint8_t LlCreateConn (const LlInitParam_t *pInitParam, const LlConnSpec_t *pConnSpec)
 Create connection. More...
 
uint8_t LlExtCreateConn (const LlExtInitParam_t *pInitParam, const LlExtInitScanParam_t scanParam[], const LlConnSpec_t connSpec[])
 Extended create connection. More...
 
void LlCreateConnCancel (void)
 Cancel a create connection operation. More...
 
uint8_t LlEncrypt (uint8_t *pKey, uint8_t *pData)
 Encrypt data. More...
 
uint8_t LlStartEncryption (uint16_t handle, const uint8_t *pRand, uint16_t diversifier, const uint8_t *pKey)
 Start encryption. More...
 
uint8_t LlLtkReqReply (uint16_t handle, const uint8_t *pKey)
 Reply to a LTK request. More...
 
uint8_t LlLtkReqNegReply (uint16_t handle)
 Negative reply to a LTK request. More...
 
uint8_t LlReadAuthPayloadTimeout (uint16_t handle, uint16_t *pTimeout)
 Read authenticated payload timeout value. More...
 
uint8_t LlWriteAuthPayloadTimeout (uint16_t handle, uint16_t timeout)
 Write authenticated payload timeout value. More...
 
uint8_t LlGetEncMode (uint16_t handle, LlEncMode_t *pMode)
 Get encryption mode used in a connection. More...
 
uint8_t LlSetEncMode (uint16_t handle, const LlEncMode_t *pMode)
 Set encryption mode used in a connection. More...
 
uint16_t LlGetAclMaxSize (void)
 Get the maximum ACL buffers size. More...
 
uint8_t LlGetAclTxBufs (void)
 Get the number of buffers in the LL ACL transmit queue. More...
 
uint8_t LlGetAclRxBufs (void)
 Get the number of buffers in the LL ACL receive queue. More...
 
uint16_t LlGetIsoMaxBufSize (void)
 Get the maximum ISO buffers size between host and controller. More...
 
uint8_t LlGetIsoTxBufs (void)
 Get the number of buffers in the LL ISO transmit queue. More...
 
uint8_t LlGetIsoRxBufs (void)
 Get the number of buffers in the LL ISO receive queue. More...
 
void LlSendAclData (uint8_t *pData)
 Send an ACL data packet. More...
 
uint8_t * LlRecvAclData (void)
 Receive an ACL data packet. More...
 
void LlRecvAclDataComplete (uint8_t numBufs)
 Indicate that received ACL data buffer has been deallocated. More...
 
uint8_t LlTxTest (uint8_t rfChan, uint8_t len, uint8_t pktType, uint16_t numPkt)
 Enter transmit test mode. More...
 
uint8_t LlRxTest (uint8_t rfChan, uint16_t numPkt)
 Enter receive test mode. More...
 
uint8_t LlEnhancedTxTest (uint8_t rfChan, uint8_t len, uint8_t pktType, uint8_t phy, uint16_t numPkt)
 Enter enhanced transmit test mode. More...
 
uint8_t LlEnhancedRxTest (uint8_t rfChan, uint8_t phy, uint8_t modIdx, uint16_t numPkt)
 Enter enhanced receive test mode. More...
 
uint8_t LlEndTest (LlTestReport_t *pRpt)
 End test mode. More...
 
uint8_t LlSetTxTestErrorPattern (uint32_t pattern)
 Set pattern of errors for Tx test mode. More...
 
uint8_t LlModifySleepClockAccuracy (uint8_t action)
 Modify the sleep clock accuracy. More...
 
void LlGetAdvSetContextSize (uint8_t *pMaxAdvSets, uint16_t *pAdvSetCtxSize)
 Get advertising set context size. More...
 
void LlGetConnContextSize (uint8_t *pMaxConn, uint16_t *pConnCtxSize)
 Get connection context size. More...
 
void LlGetExtScanContextSize (uint8_t *pMaxExtScan, uint16_t *pExtScanCtxSize)
 Get extended scan context size. More...
 
void LlGetExtInitContextSize (uint8_t *pMaxExtInit, uint16_t *pExtInitCtxSize)
 Get extended initiator context size. More...
 
void LlGetPerScanContextSize (uint8_t *pMaxPerScan, uint16_t *pPerScanCtxSize)
 Get periodic scan context size. More...
 
void LlGetCigContextSize (uint8_t *pMaxCig, uint16_t *pCigCtxSize)
 Get CIG context size. More...
 
void LlGetCisContextSize (uint8_t *pMaxCis, uint16_t *pCisCtxSize)
 Get CIS context size. More...
 
uint16_t LlStatsGetHandlerWatermarkUsec (void)
 Get the LL handler watermark level. More...
 
uint8_t LlSetCigParams (LlCisCigParams_t *pSetCigParam, uint16_t *pCisHandles)
 Used by a master host to set the parameters of all connected isochronous streams associated with a connected isochronous group in the controller. More...
 
uint8_t LlSetCigParamsTest (LlCisCigParamsTest_t *pSetCigParamTest, uint16_t *pCisHandles)
 Used by a master Host to set the parameters of all connected isochronous streams associated with a connected isochronous group in the controller for testing purpose. More...
 
uint8_t LlCreateCis (uint8_t numCis, LlCisCreateCisParams_t *pCreateCisParam)
 Used by the master host to establish one or more connected isochronous streams. More...
 
uint8_t LlRemoveCig (uint8_t cigId)
 Removes all the connected isochronous streams which have previously been set up. More...
 
uint8_t LlAcceptCisReq (uint16_t cisHandle)
 Used by the slave host to inform the controller to accept the request for the connected isochronous stream. More...
 
uint8_t LlRejectCisReq (uint16_t cisHandle, uint8_t reason)
 Used by the slave host to inform the controller to reject the request for the connected isochronous stream. More...
 
uint8_t LlSetupIsoDataPath (LlIsoSetupDataPathParams_t *pSetupDataPathParam)
 Used to identify and enable the isochronous data path between the host and the controller for each connected isochronous stream or broadcast isochronous stream. More...
 
uint8_t LlRemoveIsoDataPath (uint16_t isoHandle)
 Used to remove the isochronous data path associated with the connected isochronous stream or broadcast isochronous stream. More...
 
void LlCisSlaveInit (void)
 Initialize LL subsystem for operation for slave connected isochronous stream. More...
 
void LlCisMasterInit (void)
 Initialize LL subsystem for operation for master connected isochronous stream. More...
 
uint16_t LlInitCisMem (uint8_t *pFreeMem, uint32_t freeMemSize)
 Initialize memory for CIS. More...
 
uint16_t LlInitIsoMem (uint8_t *pFreeMem, uint32_t freeMemSize)
 Initialize memory for ISO. More...
 
void LlSendIsoData (uint8_t *pData)
 Send an ISO data packet. More...
 
uint8_t * LlRecvIsoData (void)
 Receive an ISO data packet. More...
 
void LlRecvIsoDataComplete (uint8_t numBufs)
 Indicate that received ISO data buffer has been deallocated. More...
 
uint8_t LlIsoTxTest (uint16_t isoHandle, uint8_t plLen)
 Enable ISO Tx test. More...
 
uint8_t LlIsoRxTest (uint16_t isoHandle, uint8_t plLen)
 Enable ISO Rx test. More...
 
uint8_t LlIsoReadTestCounter (uint16_t isoHandle, uint32_t *pRcvedPlCounter, uint32_t *pMissedPlCounter, uint32_t *pFailedPlCounter, bool_t termTest)
 ISO read test counter. More...
 

Detailed Description

Link layer interface file.

Copyright (c) 2013-2019 Arm Ltd. All Rights Reserved. Arm Ltd. confidential and proprietary.

IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact Arm Ltd. prior to any use, copying or further distribution of this software.

Definition in file ll_api.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.