|
USB EPROM/Flash Programmer
|
#include <eprom.hpp>

Signals | |
| void | onProgress (uint32_t current=0, uint32_t total=0, bool done=false, bool success=true, bool canceled=false) |
| Triggered when progress is changed, or operation is done or canceled. More... | |
Public Member Functions | |
| EPROM (QObject *parent=nullptr) | |
| Constructor. More... | |
| virtual | ~EPROM () |
| Destructor. More... | |
| virtual void | setSize (uint32_t value) |
| Sets the device size. More... | |
| virtual bool | read (QByteArray &buffer) |
| Read the Device. More... | |
| virtual bool | program (const QByteArray &buffer, bool verify=false) |
| Program the Device. More... | |
| virtual bool | verify (const QByteArray &buffer) |
| Verifies the Device. More... | |
| virtual bool | erase (bool check=false) |
| Erases the Device. More... | |
| virtual bool | blankCheck () |
| Verifies if the Device is blank. More... | |
| virtual bool | getId (TDeviceID &result) |
| Gets the Device ID. More... | |
| virtual bool | unprotect () |
| Unprotects the Device. More... | |
| virtual bool | protect () |
| Protects the Device. More... | |
| virtual bool | is16Bit () const |
| Returns if device is 16-Bit. More... | |
| virtual uint32_t | getSize () const |
| Returns the device size (in bytes). More... | |
| virtual void | setPort (const QString &path) |
| Sets the serial port path. More... | |
| virtual QString | getPort () const |
| Returns the serial port path (if any). More... | |
| uint8_t | getBufferSize () const |
| Returns the current buffer size value for buffer operations. More... | |
| void | setBufferSize (uint8_t value) |
| Sets the buffer size value for buffer operations. More... | |
| virtual void | setTwp (uint32_t us) |
| Sets the tWP. More... | |
| virtual uint32_t | getTwp () const |
| Returns the configured tWP (in microseconds). More... | |
| virtual void | setTwc (uint32_t us) |
| Sets the tWC. More... | |
| virtual uint32_t | getTwc () const |
| Returns the configured tWC (in microseconds). More... | |
| virtual void | setVddRd (float value) |
| Sets the VDD to Read. More... | |
| virtual float | getVddRd () const |
| Returns the configured VDD to Read (in volts). More... | |
| virtual void | setVddWr (float value) |
| Sets the VDD to Program. More... | |
| virtual float | getVddWr () const |
| Returns the configured VDD to Program (in volts). More... | |
| virtual void | setVpp (float value) |
| Sets the VPP. More... | |
| virtual float | getVpp () const |
| Returns the configured VPP (in volts). More... | |
| virtual void | setVee (float value) |
| Sets the VEE. More... | |
| virtual float | getVee () const |
| Returns the configured VEE (in volts). More... | |
| virtual void | setSkipFF (bool value=true) |
| Sets the Skip Prog 0xFF. More... | |
| virtual bool | getSkipFF () const |
| Returns the configured Skip Prog 0xFF. More... | |
| virtual void | setFastProg (bool value=true) |
| Sets the Fast Prog/Erase. More... | |
| virtual bool | getFastProg () const |
| Returns the configured Fast Prog/Erase. More... | |
| virtual void | setSectorSize (uint16_t value) |
| Sets the Sector Size. More... | |
| virtual uint16_t | getSectorSize () const |
| Returns the configured Sector Size (in bytes). More... | |
| virtual TDeviceInformation | getInfo () const |
| Returns the Device Information. More... | |
| virtual void | cancel () |
| Cancels the active operation (if any). More... | |
Protected Types | |
| enum | kDeviceOperation { kDeviceOpReset , kDeviceOpRead , kDeviceOpProg , kDeviceOpErase , kDeviceOpGetId } |
| Device Operation. More... | |
Protected Member Functions | |
| virtual bool | programDevice (const QByteArray &buffer) |
| Program the device. More... | |
| virtual bool | verifyDevice (const QByteArray &buffer) |
| Verify the device. More... | |
| virtual bool | readDevice (QByteArray &buffer) |
| Read the device. More... | |
| virtual bool | getIdDevice (TDeviceID &deviceId) |
| Get ID of the device. More... | |
| virtual bool | eraseDevice () |
| Erase the device. More... | |
| virtual bool | blankCheckDevice () |
| Blank Check the device. More... | |
| virtual bool | protectDevice (bool protect) |
| Protect/Unprotect the device. More... | |
| virtual bool | initDevice (kDeviceOperation operation) |
| Open and init resources. More... | |
| virtual bool | finalizeDevice (uint32_t current, uint32_t total, bool done=false, bool success=true, bool canceled=false) |
| Close resources and emit signals for status. More... | |
| virtual void | finalizeDevice () |
| Close resources. More... | |
|
protectedinherited |
|
explicit |
Constructor.
| parent | Pointer to parent object. Default is nullptr. |
|
virtual |
Destructor.
|
virtual |
|
virtualinherited |
|
virtualinherited |
Program the Device.
| [out] | buffer | Data to write. |
| verify | If true, calls Device::verify() after program. Default is false. |
Reimplemented from Device.
Reimplemented in SRAM.
|
virtualinherited |
|
virtualinherited |
Erases the Device.
| check | If true, calls Device::blankCheck() after erase. Default is false. |
Reimplemented from Device.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
protectedvirtualinherited |
Program the device.
| buffer | Data to write. |
|
protectedvirtualinherited |
Verify the device.
| buffer | Data to compare. |
|
protectedvirtualinherited |
Read the device.
| buffer[out] | Data to read. |
|
protectedvirtualinherited |
Get ID of the device.
| deviceId[out] | Device ID to get. |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Blank Check the device.
|
protectedvirtualinherited |
Protect/Unprotect the device.
| protect | If true, protects the device. Otherwise, unprotects the device. |
|
protectedvirtualinherited |
Open and init resources.
| operation | Device operation. |
|
protectedvirtualinherited |
Close resources and emit signals for status.
| current | Current address (default is zero). |
| total | Total size [last address + 1] (default is zero). |
| done | True if operation was finished, false otherwise (default). |
| success | True if success (default), false otherwise. |
| canceled | True if operation was canceled, false otherwise (default). |
|
protectedvirtualinherited |
Close resources.
|
virtualinherited |
Returns if device is 16-Bit.
|
virtualinherited |
Returns the device size (in bytes).
|
virtualinherited |
Sets the serial port path.
| path | Serial port path. |
|
virtualinherited |
Returns the serial port path (if any).
|
inherited |
Returns the current buffer size value for buffer operations.
|
inherited |
Sets the buffer size value for buffer operations.
| value | Buffer size, in bytes. |
|
virtualinherited |
Sets the tWP.
| us | tWP value, in microseconds. |
|
virtualinherited |
Returns the configured tWP (in microseconds).
|
virtualinherited |
Sets the tWC.
| us | tWC value, in microseconds. |
|
virtualinherited |
Returns the configured tWC (in microseconds).
|
virtualinherited |
Sets the VDD to Read.
| value | VDD value, in volts. |
|
virtualinherited |
Returns the configured VDD to Read (in volts).
|
virtualinherited |
Sets the VDD to Program.
| value | VDD value, in volts. |
|
virtualinherited |
Returns the configured VDD to Program (in volts).
|
virtualinherited |
Sets the VPP.
| value | VPP value, in volts. |
|
virtualinherited |
Returns the configured VPP (in volts).
|
virtualinherited |
Sets the VEE.
| value | VEE value, in volts. |
|
virtualinherited |
Returns the configured VEE (in volts).
|
virtualinherited |
Sets the Skip Prog 0xFF.
| value | If true (default), enables skip prog 0xFF, disables otherwise. |
|
virtualinherited |
Returns the configured Skip Prog 0xFF.
|
virtualinherited |
Sets the Fast Prog/Erase.
| value | If true (default), enables fast prog/erase, disables otherwise. |
|
virtualinherited |
Returns the configured Fast Prog/Erase.
|
virtualinherited |
Sets the Sector Size.
| value | Sector size, in bytes. |
|
virtualinherited |
Returns the configured Sector Size (in bytes).
|
virtualinherited |
|
virtualinherited |
Cancels the active operation (if any).
|
signalinherited |
Triggered when progress is changed, or operation is done or canceled.
| current | Current address (default is zero). |
| total | Total size [last address + 1] (default is zero). |
| done | True if operation was finished, false otherwise (default). |
| success | True if success (default), false otherwise. |
| canceled | True if operation was canceled, false otherwise (default). |