gmLanSetPID, gmLanSetSourceId, gmLanSetPrio, gmLanGetPID, gmLanGetSourceId, gmLanGetPrio
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
gmLanSetPID(gmLanMessage msg, long v);gmLanSetSourceId(gmLanMessage msg, long v);gmLanSetPrio(gmLanMessage msg, long v);gmLanGetPID(gmLanMessage msg);gmLanGetSourceId(gmLanMessage msg);gmLanGetPrio(gmLanMessage msg);
Description
gmLanSetPIDsets the parameter ID of the message.gmLanSetSourceIdsets the source address of the message.gmLanSetPriosets the priority of the message.gmLanGetPIDgets the parameter ID of the message.gmLanGetSourceIdgets the source address of the message.gmLanGetPriogets the priority of the message.
Parameters
- msg: Message
- v: Parameter ID, source address or priority
Return Values
gmLanSetPID,gmLanSetSourceId,gmLanSetPrio: —gmLanGetPID,gmLanGetSourceId,gmLanGetPrio: Parameter ID, source address or priority
Example
A GMLAN message is modified and sent with output(msg).The parameter ID is set with selector gm_pid.