vscphlp_calc_crc_EventEx

short vscphlp_calc_crc_Event( vscpEvent *pEvent, 
                                int bSet )

Parameters

pEvent

VSCP event.

bSet

If true (non zero) write the CRC into the event structure crc member.

Return Value

VSCP CRC.

Description

Calculate VSCP CRC and optionally set it.

Example

unsigned short crc = vscphlp_calc_crc_Event( pEvent, false );
printf("CRC = %04X\n", crc );

See Also

vscphlp_calc_crc_Event


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