vscphlp_getVSCPclassFromCANALid

unsigned short 
vscphlp_getVSCPclassFromCANALid( unsigned long id )

Parameters

id

Extended 29-bit CANAL id to get head from.

Return Value

VSCP class.

Description

Get the VSCP class from a CANAL message id.

Example

unsigned long canalid = 0x0c0a0601;
unsigned short can_vscpclass = vscphlp_getVSCPclassFromCANALid( canalid );
if ( 10 == can_vscpclass ) {
    printf("VSCP Class = %d\n", can_vscpclass );
}
else {
    printf("\aError: vscphlp_getVSCPclassFromCANAALid = %d\n", can_vscpclass );
}

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 ""