simulavr
1.1.0
|
Support for lock bits. More...
#include <flashprog.h>
Public Member Functions | |
AvrLockBits (void) | |
void | SetLockBitsConfiguration (int size) |
Configure lock bits. More... | |
bool | LoadLockBits (const unsigned char *buffer, int size) |
Initialize lock bits from elf, checks proper size. More... | |
unsigned char | GetLockByte (void) |
Get lock bits (for LPM instruction) More... | |
void | SetLockBits (unsigned char bits) |
Set lock bits (from a SPM instruction) More... | |
Private Attributes | |
int | lockBitsSize |
count of lock bits More... | |
unsigned char | lockBits |
lock bits data More... | |
Support for lock bits.
Definition at line 138 of file flashprog.h.
AvrLockBits::AvrLockBits | ( | void | ) |
Definition at line 310 of file flashprog.cpp.
|
inline |
Get lock bits (for LPM instruction)
Definition at line 151 of file flashprog.h.
bool AvrLockBits::LoadLockBits | ( | const unsigned char * | buffer, |
int | size | ||
) |
Initialize lock bits from elf, checks proper size.
Definition at line 321 of file flashprog.cpp.
References lockBits.
Referenced by ELFLoad().
void AvrLockBits::SetLockBits | ( | unsigned char | bits | ) |
Set lock bits (from a SPM instruction)
Definition at line 331 of file flashprog.cpp.
References lockBits, and lockBitsSize.
void AvrLockBits::SetLockBitsConfiguration | ( | int | size | ) |
|
private |
lock bits data
Definition at line 142 of file flashprog.h.
Referenced by LoadLockBits(), and SetLockBits().
|
private |
count of lock bits
Definition at line 141 of file flashprog.h.
Referenced by SetLockBits(), and SetLockBitsConfiguration().