The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Device::AVR::Info::Module - represent a single kind of peripheral module type from an AVR chip

SYNOPSIS

Instances in this class are returned from Device::AVR::Info:

   use Device::AVR::Info;

   my $avr = Device::AVR::Info->new_from_file( "devices/ATtiny84.xml" );

   my $fuses = $avr->peripheral( 'FUSE' );
   my $module = $fuses->module;

   printf "The FUSE module has %d registers\n",
      scalar $module->registers( 'FUSE' );

ACCESSORS

name

   $name = $module->name

Returns the name of the module

registers

   @registers = $module->registers( $groupname )

Returns a list of register instances, representing the registers in the named group.

Each is a structure of the following fields.

   $register->name
   $register->offset
   $register->size
   $register->initval
   $register->caption
   $register->mask
   @fields = $register->bitfields

The bitfields field returns a list of structures of the following fields:

   $field->name
   $field->caption
   $field->mask

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>