Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 1 of 1) sorted by relevance

/hal_ambiq-3.6.0/components/bluetooth/
Dam_devices_cooper.c190 am_sbl_host_msg_hdr_t* msg; in am_devices_cooper_handshake_recv() local
194 msg = (am_sbl_host_msg_hdr_t*)pBuf; in am_devices_cooper_handshake_recv()
195 am_hal_crc32((uint32_t)&msg->msgType, msg->msgLength - sizeof(uint32_t), &crc32); in am_devices_cooper_handshake_recv()
197 gsSblUpdateState.pWorkBuf = (uint32_t*)msg; in am_devices_cooper_handshake_recv()
198 gsSblUpdateState.bRxCrcCheckPass = (crc32 == msg->msgCrc); in am_devices_cooper_handshake_recv()
211 am_sbl_host_msg_hdr_t msg; in send_hello() local
212 msg.msgType = AM_SBL_HOST_MSG_HELLO; in send_hello()
213 msg.msgLength = sizeof(am_sbl_host_msg_hdr_t); in send_hello()
217 am_hal_crc32((uint32_t)&msg.msgType, msg.msgLength - sizeof(uint32_t), &msg.msgCrc); in send_hello()
218 g_CooperCb.write((uint8_t*)&msg, sizeof(msg)); in send_hello()
[all …]