#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "qbitfield.h"
int main( int argc, char *argv[] )
{
uint16_t rWord;
printf("%02X %02X %02X %02X %02X %02X\r\n", vPortArea[0], vPortArea[1], vPortArea[2], vPortArea[3], vPortArea[4], vPortArea[5]);
return EXIT_SUCCESS;
}
#define QBITFIELD_SIZE(NBITS)
Use to determine the uint8_t array-size for a BitField.
Definition qbitfield.h:41
int qBitField_WriteUINTn(qBitField_t *const b, const size_t index, uint32_t value, size_t xBits)
Writes an unsigned n-bit value from the BitField.
Definition qbitfield.c:230
int qBitField_ClearAll(qBitField_t *const b)
Clear all the bits in the BitField.
Definition qbitfield.c:114
int qBitField_WriteBit(qBitField_t *const b, const size_t index, uint8_t value)
Writes one bit in a bitfield.
Definition qbitfield.c:189
int qBitField_Setup(qBitField_t *const b, void *const area, const size_t area_size)
Setup a initialize a BitField instance.
Definition qbitfield.c:95
uint32_t qBitField_ReadUINTn(const qBitField_t *const b, const size_t index, size_t xBits)
Reads an unsigned 32-bit value from the BitField.
Definition qbitfield.c:208
A BitField object.
Definition qbitfield.h:30