vscphlp_getDataCodingBitArray

unsigned long long 
vscphlp_getDataCodingBitArray( const unsigned char *pNorm,
                                int size)

Parameters

pNorm

Pointer to the data coding byte of event measurement data.

size

Number of bytes the measurement data consist of including the initial data coding byte.

Return Value

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.

Description

Get measurement data that is coed as bits as a unsigned 64-bit value.

Example

unsigned char bitarry[3];
bitarry[0] = VSCP_DATACODING_BIT; // Data cding byte. Default unit, sensoridx=0
bitarry[1] = 0x55;
bitarry[2] = 0xAA;
unsigned long long bitarray64 = vscphlp_getDataCodingBitArray( bitarry, sizeof( bitarry ) )

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