8.2.4 boot_lock_fuse_bits_get Macro

Read the lock or fuse bits.

Include

<avr/boot.h>

Prototype

int boot_lock_fuse_bits_get(unsigned int address);

Remarks

This macro returns the value of the lock or fuse bits at the specified address. The address argument can be one of GET_LOW_FUSE_BITS, GET_LOCK_BITS, GET_EXTENDED_FUSE_BITS, or GET_HIGH_FUSE_BITS. The bits returned are the physical values, this if a bit position was 0, it impiles that the corresponding location was programmed.

Example

#include <avr/boot.h>
int main(void)
{
  boot_lock_bits_set(_BV(BLB11)|_BV(BLB12));
}