ESP8266
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ESP8266AVRISP Class Reference

Public Member Functions

 ESP8266AVRISP (uint16_t port, uint8_t reset_pin, uint32_t spi_freq=300e3, bool reset_state=false, bool reset_activehigh=false)
 
void begin ()
 
void setSpiFrequency (uint32_t)
 
void setReset (bool)
 
AVRISPState_t update ()
 
AVRISPState_t serve ()
 

Protected Member Functions

void _reject_incoming (void)
 
int avrisp (void)
 
uint8_t getch (void)
 
uint8_t spi_transaction (uint8_t, uint8_t, uint8_t, uint8_t)
 
void empty_reply (void)
 
void breply (uint8_t)
 
void get_parameter (uint8_t)
 
void set_parameters (void)
 
int addr_page (int)
 
void flash (uint8_t, int, uint8_t)
 
void write_flash (int)
 
uint8_t write_flash_pages (int length)
 
uint8_t write_eeprom (int length)
 
uint8_t write_eeprom_chunk (int start, int length)
 
void commit (int addr)
 
void program_page ()
 
uint8_t flash_read (uint8_t hilo, int addr)
 
void flash_read_page (int length)
 
void eeprom_read_page (int length)
 
void read_page ()
 
void read_signature ()
 
void universal (void)
 
void fill (int)
 
void start_pmode (void)
 
void end_pmode (void)
 
bool _resetLevel (bool reset_state)
 

Protected Attributes

uint32_t _spi_freq
 
WiFiServer _server
 
WiFiClient _client
 
AVRISPState_t _state
 
uint8_t _reset_pin
 
bool _reset_state
 
bool _reset_activehigh
 
AVRISP_parameter_t param
 
uint8_t buff [256]
 
int error = 0
 
bool pmode = 0
 
int here
 

Constructor & Destructor Documentation

ESP8266AVRISP::ESP8266AVRISP ( uint16_t  port,
uint8_t  reset_pin,
uint32_t  spi_freq = 300e3,
bool  reset_state = false,
bool  reset_activehigh = false 
)

Member Function Documentation

void ESP8266AVRISP::_reject_incoming ( void  )
protected
bool ESP8266AVRISP::_resetLevel ( bool  reset_state)
protected
int ESP8266AVRISP::addr_page ( int  addr)
protected
int ESP8266AVRISP::avrisp ( void  )
protected
void ESP8266AVRISP::begin ( )
void ESP8266AVRISP::breply ( uint8_t  b)
protected
void ESP8266AVRISP::commit ( int  addr)
protected
void ESP8266AVRISP::eeprom_read_page ( int  length)
protected
void ESP8266AVRISP::empty_reply ( void  )
protected
void ESP8266AVRISP::end_pmode ( void  )
protected
void ESP8266AVRISP::fill ( int  n)
protected
void ESP8266AVRISP::flash ( uint8_t  hilo,
int  addr,
uint8_t  data 
)
protected
uint8_t ESP8266AVRISP::flash_read ( uint8_t  hilo,
int  addr 
)
protected
void ESP8266AVRISP::flash_read_page ( int  length)
protected
void ESP8266AVRISP::get_parameter ( uint8_t  c)
protected
uint8_t ESP8266AVRISP::getch ( void  )
protected
void ESP8266AVRISP::program_page ( )
protected
void ESP8266AVRISP::read_page ( )
protected
void ESP8266AVRISP::read_signature ( )
protected
AVRISPState_t ESP8266AVRISP::serve ( )
void ESP8266AVRISP::set_parameters ( void  )
protected
void ESP8266AVRISP::setReset ( bool  rst)
void ESP8266AVRISP::setSpiFrequency ( uint32_t  freq)
uint8_t ESP8266AVRISP::spi_transaction ( uint8_t  a,
uint8_t  b,
uint8_t  c,
uint8_t  d 
)
protected
void ESP8266AVRISP::start_pmode ( void  )
protected
void ESP8266AVRISP::universal ( void  )
protected
AVRISPState_t ESP8266AVRISP::update ( )
uint8_t ESP8266AVRISP::write_eeprom ( int  length)
protected
uint8_t ESP8266AVRISP::write_eeprom_chunk ( int  start,
int  length 
)
protected
void ESP8266AVRISP::write_flash ( int  length)
protected
uint8_t ESP8266AVRISP::write_flash_pages ( int  length)
protected

Member Data Documentation

WiFiClient ESP8266AVRISP::_client
protected
bool ESP8266AVRISP::_reset_activehigh
protected
uint8_t ESP8266AVRISP::_reset_pin
protected
bool ESP8266AVRISP::_reset_state
protected
WiFiServer ESP8266AVRISP::_server
protected
uint32_t ESP8266AVRISP::_spi_freq
protected
AVRISPState_t ESP8266AVRISP::_state
protected
uint8_t ESP8266AVRISP::buff[256]
protected
int ESP8266AVRISP::error = 0
protected
int ESP8266AVRISP::here
protected
AVRISP_parameter_t ESP8266AVRISP::param
protected
bool ESP8266AVRISP::pmode = 0
protected