API brief
2016-11-04 22:10:40 0 举报
AI智能生成
ble api简图
作者其他创作
大纲/内容
SM
SM_InitiatorInit()
SM_StartPairing()
SM_StartEncryption()
SM_ResponderInit()
SM_NewRandKey()
SM_CalcRandomAddr()
SM_ResolveRandomAddrs()
SM_Encrypt()
SM_GenerateAuthenSig()
SM_VerifyAuthenSig()
SM_PasskeyUpdate()
Profiles
GAP profile
parameter:主要是连接相关的各种时间设置
GAP (peripheral) role profile
针对从机设计的profile
GAP center role profile
针对主机设计的profile
GAP bond manager profile
绑定相关的profile
profile框架
AddService()
添加服务到系统
RegisterAppCBs()
注册profile改变时的Application的处理程序
SetParamter()
提供App修改profile的方法
GetParameter()
提供App读取profile的方法
profile表
框架的核心
GATT
server
GATT_InitServer()
GATT_RegisterService()
注册服务
GATT_DeregisterService()
取消服务
GATT_RegisterForReq()
注册接收ATT请求的任务
GATT_VerifyReadPermissions()
GATT_VerifyWritePermissions()
GATT_ServiceChangedInd()
接受两个参数:connHandle和taskID。通知ConnHandle本服务发生变化,client接收后,发送确认消息,由taskID任务处理确认消息。
GATT_FindHandleUUID()
GATT_FindHandle()
GATT_FindNextAtts()
GATT_ServiceNumAtts()
GATT_Indication()
GATT_Notification()
client
GATT_InitClient()
GATT_RegisterForInd()
注册接收ATT indication的task
GATT_PrepareWriteReq()
GATT_ExcuteWriteReq()
GATT_ExchangeMTU()
FindService
GATT_DiscAllPrimaryServices()
GATT_DiscPrimaryServiceByUUID()
GATT_FindIncludedServices()
findCharacteristic
GATT_DiscAllChars()
GATT_DiscCharsByUUID()
GATT_DiscAllCharDescs()
readCharValue
GATT_ReadCharValue()
GATT_ReadUsingCharUUID()
GATT_ReadLongCharValue()
GATT_ReadMultiCharValues()
GATT_ReadCharDesc()
GATT_ReadLongCharDesc()
writeCharValue
GATT_WriteNoRsp()
GATT_SignedWriteNoRsp()
GATT_WriteCharValue()
GATT_WriteLongCharValue()
GATT_ReliableWrites()
GATT_WriteCharDesc()
GATT_WriteLongCharDesc()
GAP
center
GAPCentralRole_StartDevice()
GAPCentralRole_SetParameter()
GAPCentralRole_GetParameter()
GAPCentralRole_TerminateLink()
GAPCentralRole_EstablishLink()
GAPCentralRole_UpdateLink()
GAPCentralRole_StartDiscovery()
GAPCentralRole_EndDiscovery()
GAPCentralRole_StartRssi()
GAPCentralRole_EndRssi()
peripheral
GAPRole_SetParameter()
GAPRole_GetParameter()
GAPRole_StartDevice()
GAPRole_TerminateConnection()
GAPRole_SendUpdateParam()
GAPRole_RegisterAppCBs()
bond manager
GAPBondMgr_SetParameter()
GAPBondMgr_GetParameter()
GAPBondMgr_LinkEst()
GAPBondMgr_ResolveAddr()
GAPBondMgr_ServiceChangedInd()
GAPBondMgr_UpdateCharCfg()
GAPBondMgr_Register()
GAPBondMgr_PasscodeRsp()
GAPBondMgr_ProcessGAPMsg()
GAPBondMgr_CheckNVLen()
0 条评论
下一页