vscphlp_getVSCPtypeFromCANALid

unsigned short 
vscphlp_getVSCPtypeFromCANANALid( const unsigned long id )

Parameters

id

Extended 29-bit CANAL id to get head from.

Return Value

VSCP type.

Description

Get the VSCP type from a a CANAL message id (CAN id).

Example

unsigned long cananalid = 0x0c0a0601;

unsigned short canal_vscptype = vscphlp_getVSCPtypeFromCANALid( canalid );
if ( 6 == canal_vscptype ) {
    printf("VSCP Type = %d\n", canal_vscptype );
}
else {
    printf("\aError: vscphlp_getVSCPtypeFromCANALid = %d\n", canal_vscptype );
}

Very Simple Control Protocol
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 ""