Device::AVR::Info::Module - represent a single kind of peripheral module type from an AVR chip
Device::AVR::Info::Module
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' );
$name = $module->name
Returns the name of the module
@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:
bitfields
$field->name $field->caption $field->mask
Paul Evans <leonerd@leonerd.org.uk>
To install Device::AVR::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::AVR::Info
CPAN shell
perl -MCPAN -e shell install Device::AVR::Info
For more information on module installation, please visit the detailed CPAN module installation guide.