Skip to main content

Declaration of ARINC Words

CAPL Functions » A429 » Declaration of ARINC Words Valid for: CANoe DE • CANoe4SW DE ARINC words may be controlled by means of a CAPL program. An ARINC word object is created with the keyword a429word. ARINC words defined in a database may also be used for initialization. For more convenience in the programming environment a CAPL include file is provided. The file gives the programmer a number of symbolic constants and some helper routines as a supplement for the CAPL API. Use this statement in the include section of your CAPL code: #include "A429/A429utils.cin". Example: Create ARINC Word Objects
a429word 0x82 myA429msg1; // (1)
a429word Label_123 myA429msg2; // (2)
a429word * myA429msg3; // (3)
The members of the ARINC word object are accessed via selectors. Example: Transmit an ARINC Word on Request
a429word * myA429msg4 = {msgChannel = 1, id = 0x82}; // create ARINC word
myA429msg4.dword(0) = 0x1234 << 10; // shift behind SDI
output(myA429msg4);  // transmit it

ARINC word specific event procedures

If there is a valid ARINC word event received, an event procedure is called. Note that ARINC word events may be triggered from a connected hardware channel or even internally from a simulated node or an Interactive Generator. The event procedures are available. Note Most of the API functions need an ARINC word as a parameter. Note that in this ARINC word a valid channel needs to be assigned with the selector msgchannel.