weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Data Fields
eeOp_data_t Struct Reference

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.

Detailed Description

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.

See also:
initSetAppThread(struct mThr_data_t *, p2ptFun)

Field Documentation

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.


The documentation for this struct was generated from the following file: