|
USB EPROM/Flash Programmer
|
Opcodes for communication. More...
#include <string>#include <map>
Classes | |
| struct | TCmdOpCode |
| Defines an opcode to run. More... | |
| class | OpCode |
| Opcode Manager Class. More... | |
Typedefs | |
| typedef std::map< kCmdOpCodeEnum, TCmdOpCode > | TCmdOpCodeMap |
| Type of opcodes group (map). More... | |
Opcodes for communication.
| typedef std::map<kCmdOpCodeEnum, TCmdOpCode> TCmdOpCodeMap |
Type of opcodes group (map).
| enum kCmdParamValueEnum |
| enum kCmdOpCodeEnum |
Enumeration of the OpCodes.
| Enumerator | |
|---|---|
| kCmdNop | OPCODE / NOP : Opcode NOP. |
| kCmdVddCtrl | OPCODE / VDD : Opcode VDD Control On/Off. The parameter (one byte) indicates on/off.
|
| kCmdVddSetV | OPCODE / VDD : Opcode VDD Set Voltage. The parameter (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVddGetV | OPCODE / VDD : Opcode VDD Get Voltage. The result (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVddGetDuty | OPCODE / VDD : Opcode VDD Get PWM Duty Cycle. The result (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVddGetCal | OPCODE / VDD : Opcode VDD Get Calibration. The result (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVddInitCal | OPCODE / VDD : Opcode VDD Init Calibration. |
| kCmdVddSaveCal | OPCODE / VDD : Opcode VDD Save Calibration. The parameter (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVddOnVpp | OPCODE / VDD : Opcode VDD on VPP. The parameter (one byte) indicates on/off.
|
| kCmdVppCtrl | OPCODE / VPP : Opcode VPP Control On/Off. The parameter (one byte) indicates on/off.
|
| kCmdVppSetV | OPCODE / VPP : Opcode VPP Set Voltage. The parameter (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVppGetV | OPCODE / VPP : Opcode VPP Get Voltage. The result (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVppGetDuty | OPCODE / VPP : Opcode VPP Get PWM Duty Cycle. The result (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVppGetCal | OPCODE / VPP : Opcode VPP Get Calibration. The result (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVppInitCal | OPCODE / VPP : Opcode VPP Init Calibration. |
| kCmdVppSaveCal | OPCODE / VPP : Opcode VPP Save Calibration. The parameter (two bytes) represents the value. MSB is integer part. LSB is fractional part. |
| kCmdVppOnA9 | OPCODE / VPP : Opcode VPP on A9. The parameter (one byte) indicates on/off.
|
| kCmdVppOnA18 | OPCODE / VPP : Opcode VPP on A18. The parameter (one byte) indicates on/off.
|
| kCmdVppOnCE | OPCODE / VPP : Opcode VPP on CE. The parameter (one byte) indicates on/off.
|
| kCmdVppOnOE | OPCODE / VPP : Opcode VPP on OE. The parameter (one byte) indicates on/off.
|
| kCmdVppOnWE | OPCODE / VPP : Opcode VPP on WE. The parameter (one byte) indicates on/off.
|
| kCmdBusCE | OPCODE / BUS : Opcode CE Ctrl. The parameter (one byte) indicates on/off.
|
| kCmdBusOE | OPCODE / BUS : Opcode OE Ctrl. The parameter (one byte) indicates on/off.
|
| kCmdBusWE | OPCODE / BUS : Opcode WE Ctrl. The parameter (one byte) indicates on/off.
|
| kCmdBusAddrClr | OPCODE / BUS : Opcode Address Clear. |
| kCmdBusAddrInc | OPCODE / BUS : Opcode Address Increment. |
| kCmdBusAddrSet | OPCODE / BUS : Opcode Address Set. The parameter (four bytes) represents the address (MSB up to LSB). |
| kCmdBusAddrSetB | OPCODE / BUS : Opcode Address Set Byte. The parameter (one byte) represents the address. |
| kCmdBusAddrSetW | OPCODE / BUS : Opcode Address Set Word. The parameter (two bytes) represents the address (MSB up to LSB). |
| kCmdBusDataClr | OPCODE / BUS : Opcode Data Clear. |
| kCmdBusDataSet | OPCODE / BUS : Opcode Data Set Byte. The parameter (one byte) represents the data. |
| kCmdBusDataSetW | OPCODE / BUS : Opcode Data Set Word. The parameter (two bytes) represents the data (MSB up to LSB). |
| kCmdBusDataGet | OPCODE / BUS : Opcode Data Get Byte. The result (one byte) represents the data. |
| kCmdBusDataGetW | OPCODE / BUS : Opcode Data Get Word. The result (two bytes) represents the data (MSB up to LSB). |
| kCmdDeviceSetTwp | OPCODE / DEVICE : Opcode Device Set tWP. The parameter (four bytes) represents the tWP value in microseconds. |
| kCmdDeviceSetTwc | OPCODE / DEVICE : Opcode Device Set tWC. The parameter (four bytes) represents the tWC value in microseconds. |
| kCmdDeviceConfigure | OPCODE / DEVICE : Opcode Device Configure. The first parameter (one byte) represents the device algorithm. +----------------------+ |Bit| Description | | 0 | Skip Write 0xFF | | 1 | Prog with VPP On | | 2 | VPP/~OE Pin | | 3 | ~PGM/~CE Pin | | 4 | PGM positive | | 5 | 16-bit mode | +----------------------+
|
| kCmdDeviceSetupBus | OPCODE / DEVICE : Opcode Device Setup Bus. The parameter (one byte) represents the operation, and follows the table: +------------------------------+ |Operation| Description | | 0x00 | Reset Bus | | 0x01 | Prepare to Read | | 0x02 | Prepare to Program | +------------------------------+
|
| kCmdDeviceRead | OPCODE / DEVICE : Opcode Device Read Byte/Word buffer and Increment Address. The parameter (one byte) represents the buffer size, in bytes. |
| kCmdDeviceWrite | OPCODE / DEVICE : Opcode Device Write Byte/Word buffer, verify and Increment Address. The first parameter (one byte) represents the buffer size, in bytes. |
| kCmdDeviceWriteSector | OPCODE / DEVICE : Opcode Device Write Byte/Word sector, verify and Increment Address. The first parameter (two bytes) represents the sector size, in bytes. The following are data to write (size is specified). MSB first. |
| kCmdDeviceVerify | OPCODE / DEVICE : Opcode Device Verify Byte/Word buffer and Increment Address. The first parameter (one byte) represents the buffer size, in bytes. |
| kCmdDeviceBlankCheck | OPCODE / DEVICE : Opcode Device Check if Byte/Word buffer is Blank and Increment Address. The parameter (one byte) represents the buffer size, in bytes. |
| kCmdDeviceGetId | OPCODE / DEVICE : Opcode Device Get ID. The result (four bytes) represents Manufacturer/Device ID, following the table: +--------------------------------------------+ |Response | Description | | First (MSB)/Second (LSB) | Manufacurer ID | | Third (MSB)/Fourth (LSB) | Device ID | +--------------------------------------------+ |
| kCmdDeviceErase | OPCODE / DEVICE : Opcode Device Erase. |
| kCmdDeviceUnprotect | OPCODE / DEVICE : Opcode Device Unprotect. |
| kCmdDeviceProtect | OPCODE / DEVICE : Opcode Device Protect. |
Enumeration of the Device Operations.
Enumeration of the Device Algorithms.
| Enumerator | |
|---|---|
| kCmdDeviceAlgorithmUnknown | CMD / DEVICE : Defines an unknown algorithm. |
| kCmdDeviceAlgorithmSRAM | CMD / DEVICE : Defines an algorithm SRAM. |
| kCmdDeviceAlgorithmEPROM | CMD / DEVICE : Defines an algorithm EPROM 27. |
| kCmdDeviceAlgorithmEEPROM28C64 | CMD / DEVICE : Defines an algorithm EEPROM 28C64. |
| kCmdDeviceAlgorithmEEPROM28C256 | CMD / DEVICE : Defines an algorithm EEPROM 28C256 or upper. |
| kCmdDeviceAlgorithmFlash28F | CMD / DEVICE : Defines an algorithm Flash 28F. |
| kCmdDeviceAlgorithmFlashSST28SF | CMD / DEVICE : Defines an algorithm Flash SST28SF. |
| kCmdDeviceAlgorithmFlashAm28F | CMD / DEVICE : Defines an algorithm Flash Am28F. |
| kCmdDeviceAlgorithmFlashI28F | CMD / DEVICE : Defines an algorithm Flash i28F. |