Home
last modified time | relevance | path

Searched refs:BITS_UCHAR (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/modbus/functions/
Dmbutils.c43 #define BITS_UCHAR 8U macro
57 assert( ( size_t )BITS_UCHAR == sizeof( UCHAR ) * 8 ); in xMBUtilSetBits()
61 usByteOffset = ( USHORT )( ( usBitOffset ) / BITS_UCHAR ); in xMBUtilSetBits()
64 usNPreBits = ( USHORT )( usBitOffset - usByteOffset * BITS_UCHAR ); in xMBUtilSetBits()
71 usMask <<= usBitOffset - usByteOffset * BITS_UCHAR; in xMBUtilSetBits()
75 usWordBuf |= ucByteBuf[usByteOffset + 1] << BITS_UCHAR; in xMBUtilSetBits()
82 ucByteBuf[usByteOffset + 1] = ( UCHAR )( usWordBuf >> BITS_UCHAR ); in xMBUtilSetBits()
95 usByteOffset = ( USHORT )( ( usBitOffset ) / BITS_UCHAR ); in xMBUtilGetBits()
98 usNPreBits = ( USHORT )( usBitOffset - usByteOffset * BITS_UCHAR ); in xMBUtilGetBits()
105 usWordBuf |= ucByteBuf[usByteOffset + 1] << BITS_UCHAR; in xMBUtilGetBits()