DevEEPROM.cpp revision aaf6eb788dab09bc8c3c8576c60fabc60037a483
2N/A#include "DevEEPROM.h"
2N/A if ( pu16Initial ) {
2N/A m_fWriteEnabled = false;
2N/A m_u32InternalWires = 0;
if (m_fWriteEnabled) {
return WRITING_DO;
return WAITING_CS_FALL;
for (int i = 0; i < SIZE; i++)
return WAITING_CS_FALL;
return WAITING_CS_FALL;
m_u16Word = 0;
return READING_DI;
m_fWriteEnabled = false;
return STANDBY;
m_u16Word = 0;
return READING_DI;
return opWriteAll();
m_fWriteEnabled = true;
return STANDBY;
return m_eState;
m_u16Word = 0;
if (m_u16Mask == 0)
switch (this->m_eOp)
case OP_READ:
case OP_WRITE:
case OP_WRITE_ALL:
case OP_DECODE:
switch(m_eState) {
case WAITING_CS_FALL:
case WAITING_CS_RISE:
case READING_DI:
return m_u32InternalWires;