unsigned long long vscphlp_getDataCodingBitArray( const unsigned char *pNorm, int size)
Pointer to the data coding byte of event measurement data.
Number of bytes the measurement data consist of including the initial data coding byte.
A 64-bit unsigned integer is returned. The bits in the measurement data array are in MSB - LSB order and this is preserved in the unsigned 64-bit integer.
Get measurement data that is coed as bits as a unsigned 64-bit value.
unsigned char bitarry; bitarry = VSCP_DATACODING_BIT; // Data cding byte. Default unit, sensoridx=0 bitarry = 0x55; bitarry = 0xAA; unsigned long long bitarray64 = vscphlp_getDataCodingBitArray( bitarry, sizeof( bitarry ) )
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).