libws libws
WSwan hardware library for the Wonderful toolchain
Loading...
Searching...
No Matches
Hardware defines - Internal EEPROM I/O ports

Macros

#define WS_IEEP_DATA_PORT   0xBA
#define WS_IEEP_COMMAND_PORT   0xBC
#define WS_IEEP_CTRL_PORT   0xBE
#define WS_IEEP_CTRL_PROTECT   0x80
#define WS_IEEP_CTRL_ERASE   0x40
#define WS_IEEP_CTRL_WRITE   0x20
#define WS_IEEP_CTRL_READ   0x10
#define WS_IEEP_CTRL_READY   0x02
#define WS_IEEP_CTRL_DONE   0x01

Detailed Description

Macro Definition Documentation

◆ WS_IEEP_COMMAND_PORT

#define WS_IEEP_COMMAND_PORT   0xBC

Internal EEPROM command.

Definition at line 513 of file ports.h.

◆ WS_IEEP_CTRL_DONE

#define WS_IEEP_CTRL_DONE   0x01

Finished reading out a word from the internal EEPROM.

Definition at line 539 of file ports.h.

◆ WS_IEEP_CTRL_ERASE

#define WS_IEEP_CTRL_ERASE   0x40

Send erase command to internal EEPROM.

Definition at line 523 of file ports.h.

◆ WS_IEEP_CTRL_PORT

#define WS_IEEP_CTRL_PORT   0xBE

Definition at line 515 of file ports.h.

◆ WS_IEEP_CTRL_PROTECT

#define WS_IEEP_CTRL_PROTECT   0x80

Protect the internal EEPROM's non-user area (bytes 0x60 onward) from being written to.

Definition at line 519 of file ports.h.

◆ WS_IEEP_CTRL_READ

#define WS_IEEP_CTRL_READ   0x10

Send read command to internal EEPROM.

Definition at line 531 of file ports.h.

◆ WS_IEEP_CTRL_READY

#define WS_IEEP_CTRL_READY   0x02

A new internal EEPROM command can be written to the I/O ports.

Definition at line 535 of file ports.h.

◆ WS_IEEP_CTRL_WRITE

#define WS_IEEP_CTRL_WRITE   0x20

Send write command to internal EEPROM.

Definition at line 527 of file ports.h.

◆ WS_IEEP_DATA_PORT

#define WS_IEEP_DATA_PORT   0xBA

Internal EEPROM data.

Definition at line 508 of file ports.h.