Skip to main content
Open topic with navigation

C2xEnableMsg

CAPL Functions » Car2x » C2xEnableMsg Valid for: CANoe DE

Function Syntax

  • long C2xEnableMsg (char* dbMessage); //form 1
  • long C2xEnableMsg (char* dbMessage, char* stationName); //form 2
  • long C2xEnableMsg(long packetHandle); // form 3
  • long C2xEnableMsg (char stationName[], long packetHandle); // form 4

Description

Enables a message for which the database attribute Send Type is Cyclic or CyclicIfActive in the database for cyclic sending. The function has no effect for messages with Send Type NoMsgSendType.

Parameters

  • dbMessage: Name of the message to be enabled
  • stationName: Name of the sending station
  • packetHandle: Packet handle of the message to be enabled.

Return Values

Example

long packetHdl =  -1;
C2xEnableMsg("CAM");
packetHdl = C2xGetMessageHandle(1,1);
C2xEnableMsg(packetHdl);
C2xEnableMsg ("BasicNode",packetHdl);
See Also