#include "ReelTwo.h"
#include <EEPROM.h>
Go to the source code of this file.
◆ BIT_MAPWORD
◆ BMAPWORD_BIT_SIZE
| #define BMAPWORD_BIT_SIZE (sizeof(BMAPWORD) * 8) |
◆ BMAPWORD_GRANULARITY
| #define BMAPWORD_GRANULARITY (sizeof(BMAPWORD)) |
◆ EEPROM_SIZE
| #define EEPROM_SIZE EEPROM.length() |
◆ MAPWORD_BIT
| #define MAPWORD_BIT |
( |
|
value | ) |
((usedBitmap[(value) / sizeof(usedBitmap[0])] & BIT_MAPWORD((value) % sizeof(usedBitmap[0]))) != 0) |
◆ SET_MAPWORD_BIT
| #define SET_MAPWORD_BIT |
( |
|
value, |
|
|
|
bit |
|
) |
| |
Value: {\
uint8_t bitpos = (value) % sizeof(usedBitmap[0]); \
uint8_t wordpos = (value) / sizeof(usedBitmap[0]); \