android nci architecture
abbreviation and packages
full name | abbreviation |
---|---|
Message Type | (MT) |
Packet Boundary Flag | (PBF) |
Group Identifier | (GID) |
Opcode Identifier | (OID) |
Payload Length | (L) |
method nfc_ncif_process_event
get message type, packet boundary flag,group id,opcode id, payload length:
bool nfc_ncif_process_event(NFC_HDR* p_msg) {
...
p = (uint8_t*)(p_msg + 1) + p_msg->offset;
pp = p;
NCI_MSG_PRS_HDR0(pp, mt, pbf, gid);
oid = ((*pp) & NCI_OID_MASK);
...
it's called by nfc_task
, here is nfc_task control flow
网友评论