![background image](http://html1.mh-extra.com/html/ics/xmc-a825-16/xmc-a825-16_user-manual_3532771037.webp)
XMC-A825-16 ARINC-825 16 Channel XMC / CANFlight-16 User's Manual REV C
Document: TP2216-901_Users_Manual.pdf
Page 37 of 39
© Innovative Control Systems
Project:
TP2216-901
Author: K. Jacobson Date: 11.05.2019
Rev.: C
#include "pmc825.h"
int Pmc825CtrlRead(PMC825_IF *intf, CTRL_MSG *ctrl_msg)
Description:
The
Pmc825CtrlRead()
function tries to return one PMC825 control message from the buffer associated with the
CAN channel of the XMC-A825-16 unit specified through the PMC825_IF interface structure.
Return Values:
Upon successful completion,
Pmc825CtrlRead()
returns PMC825_OK. Otherwise, one of the following codes is
returned:
PMC825_NO_MSG: No message could be read from the module.
10.10 Pmc825CtrlWrite()
Synopsis:
#include "pmc825.h"
int Pmc825CtrlWrite(PMC825_IF *intf, CTRL_MSG *msg)
Description:
The
Pmc825CtrlWrite()
function tries to write a PMC825 control messages to the buffer associated with the
CAN channel of the XMC-A825-16 unit specified through the PMC825_IF interface structure for transmission.
Return Values:
Upon successful completion,
Pmc825Arinc825Write()
returns PMC825_OK. Otherwise, one of the following
codes is returned:
PMC825_BUF_OVERFLOW: The number of messages specified by "msg_count" exceeded the maximum
number of MAX_CAN_MSG_COUNT.