Skip to main content
Open topic with navigation CAPL Functions » J1939 » GB/T 27930 IL » GBT27930IL_OnTxMessage

GBT27930IL_OnTxMessage (Callback)

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void GBT27930IL_OnTxMessage( pg * txPG )

Description

This callback function is called from the GBT27930 IL if a message was sent successfully.

Parameters

  • txPG: message which was sent

Example

//report about the sending of a CRM message (PGN = 0x100)
//with 0xAA in the first byte (BMS is recognized)
void GBT27930IL_OnTxMessage( pg * txPG )
{
  switch( txPG.PGN )
  {
    case 0x600:
      if(txPG.byte(0) == 0xAA)
        writeEx(-3, 3, "CRM (BMS is recognized) is sent");
      break;
  }
}