vscphlp_getCANALidFromVSCPdata

unsigned long 
vscphlp_getCANALidFromVSCPdata( unsigned char priority, 
                                unsigned short vscp_class, 
                                unsigned short vscp_type )

Parameters

priority

VSCP event priority (0-7).

vscp_class

VSCP Class.

vscp_type

VSCP type.

Return Value

CANAL (CAN) id.

Description

Construct a CANAL id (CAN id ) from a VSCP event.

Example

unsigned long constr_canal_id2 = vscphlp_getCANALidFromVSCPdata( 3, 10, 6 ); 
if ( 0x0c0a0600 == constr_canal_id2 ) {
    printf("Nickname = %08X\n", constr_canal_id2 );
}
else {
   printf("\aError: vscphlp_getVSCPnicknameFromCANALid = %08X\n", constr_canal_id2 );
}

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