Data Fields | |
uint16_t | eeAddress |
The EEPROM address to start the operation. | |
uint8_t | noOfWrite |
Number of bytes to write. | |
pt_t | pt |
The (raw) protothread data structure. | |
uint8_t * | writeBuffer |
Pointer to the buffer of data to be written. |
The data structure for an EEPROM bulk operation thread.
A structure of this type holds all data for an EEPROM write operation on 1..255 continuous bytes. It will be passed as parameter to the thread function eeOperationThread.
uint16_t eeAddress |
The EEPROM address to start the operation.
It has to be set to the first destination address in EEPROM before the thread function is called the first time.
It will be incremented after each step.
uint8_t* writeBuffer |
Pointer to the buffer of data to be written.
The new data for the EEPROPM are taken from here.
This pointer will be incremented after every step.
For the thread function eeOperationThread this is an address in RAM.
uint8_t noOfWrite |
Number of bytes to write.
It has to be set accordingly before the thread function is called the first time. This value will be decremented after every step.
0, of course, means no (further) operations pending.