CanNm_RxIndication
1、canif-》CanNm
CanNm_RxIndication 是 AUTOSAR 标准中定义的一个函数,用于处理 CAN 网络管理 (CAN Network Management) 模块接收到的 CAN 帧。该函数是 CAN Network Management 模块(CanNm)向上层应用程序(如网络管理或其他功能模块)提供的一个回调函数。
void CanNm_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
RxPduId 是接收到的 PDU (Protocol Data Unit) 的 ID。
PduInfoPtr 是指向接收到的 PDU 数据和长度信息的指针。
CanNm_RxIndication 函数被 CAN Network Management 模块调用,以通知上层应用程序有新的 CAN 帧接收到。应用程序可以在该函数中执行相应的处理逻辑。
2、上层处理
通过注册 CanNm_RxIndication 函数作为回调函数,应用程序可以实现对接收到的 CAN 帧进行自定义处理。