ZHCACY9 August 2023 CC2564C
以下函數(shù)負責向遠程 HID 設(shè)備發(fā)送 GET_PROTOCOL 事務(wù)。此函數(shù)在成功執(zhí)行時返回零,而在出現(xiàn)任何錯誤時返回負值。
使用此命令時不需要包含參數(shù)。參數(shù)對 GetProtocolRequest 的結(jié)果沒有影響。
HID_Get_Protocol_Request(BluetoothStackID, HIDID)
int BTPSAPI HID_Get_Protocol_Request (unsigned int BluetoothStackID, unsigned int HIDID)
以下函數(shù)負責向遠程 HID 設(shè)備發(fā)送 GET_PROTOCOL 事務(wù)。該函數(shù)將以下內(nèi)容作為輸入:藍牙協(xié)議棧的 ID(用于發(fā)送請求)和已建立連接的 HID ID。如果成功,此函數(shù)返回零;如果出現(xiàn)錯誤,則返回負的錯誤代碼。