![background image](http://html1.mh-extra.com/html/ics/xmc-a825-16/xmc-a825-16_user-manual_3532771035.webp)
XMC-A825-16 ARINC-825 16 Channel XMC / CANFlight-16 User's Manual REV C
Document: TP2216-901_Users_Manual.pdf
Page 35 of 39
© Innovative Control Systems
Project:
TP2216-901
Author: K. Jacobson Date: 11.05.2019
Rev.: C
10.4 Pmc825RawCanWrite()
Synopsis:
#include "pmc825.h"
int Pmc825RawCanWrite(PMC825_IF *intf, CAN_MSG *msg, int msg_count)
Description:
The
Pmc825RawCanWrite()
function tries to write one or more unformatted CAN messages to the buffer
associated with the CAN channel of the XMC-A825-16 unit specified through the PMC825_IF interface
structure for transmission. The number of messages to be transmitted is specified by "msg_count".
Return Values:
Upon successful completion,
Pmc825RawCanWrite()
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.
10.5 Pmc825CanAerospaceRead()
Synopsis:
#include "pmc825.h"
#include "can_as.h"
int Pmc825CanAerospaceRead(PMC825_IF *intf, CAN_AS_MSG *msg)
Description:
The
Pmc825CanAerospaceRead()
function tries to return one CANaerospace formatted CAN 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,
Pmc825CanAerospaceRead()
returns PMC825_OK. Otherwise, one of the following
codes is returned:
PMC825_NO_MSG: No message could be read from the module.
10.6 Pmc825CanAerospaceWrite()
Synopsis:
#include "pmc825.h"
#include "can_as.h"
int Pmc825CanAerospaceWrite(PMC825_IF *intf, CAN_AS_MSG *msg, int msg_count)
Description:
The
Pmc825CanAerospaceWrite()
function tries to write one or more CANaerospace formatted CAN messages
to the buffer associated with the CAN channel of the XMC-A825-16 unit specified through the PMC825_IF