Skip to main content
Open topic with navigation CAPL Functions » FlexRay » frSetAutoIncrement

frSetAutoIncrement

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

Part of the payload of a frame will be incremented automatically on each transmission. The number of bytes used can be set to 1, 2, or 4. The byte offset can also be set. The only format supported is Intel (Little Endian).

Parameters

  • channel: Channel number (or cluster number)
  • slotId: Slot number of the frame used.
  • channelMask: FlexRay channel mask
    Possible values:
    • 1: Channel A
    • 2: Channel B
    • 3: Channel A+B
  • cycleStart, cycleRepetition: Cycle multiplexing parameter
  • flags: 1: Payload increment is switched on. All other values are reserved and must not be used.
  • increment_size: Number of bits used for the increment.
    Valid values: 8, 16, 32
  • increment_offset: Byte position after which the payload is incremented.
    Possible values:
    • increment_size 8: 0,1,2,3…
    • increment_size 16: 0,2,4,6,…
    • increment_size 32: 0,4,8,…

Return Values

Example

This example sends automatically a frame each second cycle in slot 30 with automatically incrementing a message counter: