Device::AVR::Info::Module - represent a single kind of peripheral module type from an AVR chip
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' );
Returns the name of the module
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
bitfields field returns a list of structures of the following fields:
$field->name $field->caption $field->mask
Paul Evans <email@example.com>