NAME

Device::BusPirate::Mode - base class for Device::BusPirate modes

DESCRIPTION

The following methods are implemented by all the various mode subclasses.

METHODS

pirate

   $pirate = $mode->pirate

Returns the underlying Device::BusPirate instance.

power

   $mode->power( $power )->get

Enable or disable the VREG 5V and 3.3V power outputs.

pullup

   $mode->pullup( $pullup )->get

Enable or disable the IO pin pullup resistors from Vpu. These are connected to the MISO, CLK, MOSI and CS pins.

aux

   $mode->aux( $aux )->get

Set the AUX output pin level.

cs

   $mode->cs( $cs )->get

Set the CS output pin level.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>