155 return( (data & (0x80 >> (off&7))) );
Master include file for project Includes all project includes and defines here.
void cpy_flash(uint8_t *src, uint8_t *dest, int size)
Copy data from Flash to Ram Uses flash_read8() to avoid alighnment problems.
uint8_t read_flash8(uint8_t *p)
uint32_t _addr
Read bit bit value from flash Supports 8 bits reads from memory spaced that must have 32bit aligned d...
uint64_t read_flash64(uint8_t *p)
64 bits reads from Flash memory space Uses cpy_flash() to avoid alighnment problems ...
uint32_t read_flash32(uint8_t *p)
32 bits reads from Flash memory space Uses cpy_flash() to avoid alighnment problems ...
int bittestv(unsigned char *ptr, int off)
Test bit in byte array.
uint32_t read_flash_ptr(uint8_t *p)
Pointer read from Flash memory space Uses cpy_flash() to avoid alighnment problems.
int bittestxy(unsigned char *ptr, int x, int y, int w, int h)
Test bit in w * h size bit array usng x and y offsets.
uint16_t read_flash16(uint8_t *p)
16 bits reads from Flash memory space Uses cpy_flash() to avoid alighnment problems ...
Flash read and bit test utilities.