simulavr  1.1.0
AvrLockBits Class Reference

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...
 

Detailed Description

Support for lock bits.

Definition at line 138 of file flashprog.h.

Constructor & Destructor Documentation

◆ AvrLockBits()

AvrLockBits::AvrLockBits ( void  )

Definition at line 310 of file flashprog.cpp.

Member Function Documentation

◆ GetLockByte()

unsigned char AvrLockBits::GetLockByte ( void  )
inline

Get lock bits (for LPM instruction)

Definition at line 151 of file flashprog.h.

◆ LoadLockBits()

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().

◆ SetLockBits()

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.

◆ SetLockBitsConfiguration()

void AvrLockBits::SetLockBitsConfiguration ( int  size)

Configure lock bits.

Definition at line 317 of file flashprog.cpp.

References lockBitsSize.

Member Data Documentation

◆ lockBits

unsigned char AvrLockBits::lockBits
private

lock bits data

Definition at line 142 of file flashprog.h.

Referenced by LoadLockBits(), and SetLockBits().

◆ lockBitsSize

int AvrLockBits::lockBitsSize
private

count of lock bits

Definition at line 141 of file flashprog.h.

Referenced by SetLockBits(), and SetLockBitsConfiguration().


The documentation for this class was generated from the following files: