Skip to main content

C2xGetStationColor

CAPL Functions » Car2x » C2xGetStationColor Valid for: CANoe DE

Function Syntax

Description

Retrieve the color associated with the ITS Station in the Station Manager. The ITS Station can be identified by its handle or by the name of the associated node in the database.

Parameters

  • stationHandle: Handle of the ITS station.
  • dbNodeName: Name of the database node associated with the station.
    • Note: CAPL Macro %NODE_NAME% can be used as value for the dbNodeName parameter to get the station color for a calling ECU CAPL node.

Return Values

  • RGB Value (0xBBGGRR): The station color encoded as RGB Value (0xBBGGRR).
  • -1: Error, specified station and/or attribute name do not exist in the scenario.

Example