vscphlp_getVSCPheadFromCANALid

unsigned unsigned char 
vscphlp_getVSCPheadFromCANALid( const unsigned long id ))

Parameters

id

Extended 29-bit CANBUS id to get head from.

Return Value

VSCP head byte.

Description

Get the VSCP head from a CANAL message id. The VSCP head is defined as shown in the vscp.h header file.

Example

unsigned char vscphead;
unsigned long canalid = 0x0c0a0601;
vscphead = vscphlp_getVSCPheadFromCANALid( canalid );
if ( 96 == vscphead ) {  // Priority == 3 Not hard coded
    printf("VSCP head = %d\n", vscphead );
}
else {
   printf("\aError: vscphlp_getVSCPheadFromCANALid = %d\n", vscphead );
}

Very Simple Control Protocol
Wed Jul 04 2018 19:49:59 GMT+0000 (UTC)
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""