Skip to main content

AfdxSetSignalBool

Open topic with navigation CAPL Functions » AFDX » AfdxSetSignalBool

Function Syntax

long AfdxSetSignalBool( long packet, char signalName[], long value, long fdsStatus ); // form 1
long AfdxSetSignalBool( long packet, long offset, long bitPosition, long value ); // form 2

Description

This function sets the value of a Boolean signal. Note: A Boolean is represented by a single bit in a 32-bit field.

Parameters

  • packet: Handle of the message.
  • signalName: Name of the signal.
    • Note: The signal and its message need to be defined in the assigned DBC file.
  • value: One of the values 0 or 1 is allowed.
  • fdsStatus:
  • offset: The offset value points to the starting byte of a 32-bit field in the AFDX payload area.
  • bitPosition: Position [1..32] of a single bit in a 32-bit area pointed to by offset.

Return Values

Example