Module PMD1608Wrap :: Class PMD1608
[hide private]
[frames] | no frames]

Class PMD1608

source code

object --+
         |
        PMD1608

Class that encapsulates PMD-1608FS functionality.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_byte_in(self)
Set all 8 DIO lines to be inputs.
source code
 
set_byte_out(self)
Set all 8 DIO lines to be outputs.
source code
 
set_bit_in(self, bitnum)
Set DIO line bitnum to be an input.
source code
 
set_bit_out(self, bitnum)
Set DIO line bitnum to be an output.
source code
 
read_byte(self, byte)
Read all 8 DIO lines as a byte value.
source code
 
write_byte(self, byte)
Set all 8 DIO lines from a byte value.
source code
 
read_bit(self, bitnum)
Read the state of DIO line bitnum.
source code
 
write_bit(self, bitnum, bitval)
Set the state of DIO line bitnum to bitval (0 or 1).
source code
 
pulse_bit(self, bitnum, usecs)
Set the state of DIO line bitnum to 1 for usecs microseconds then 0.
source code
 
read_channel(self, channel, grange)
Read the voltage on analog input channel using full scale range grange.
source code
 
reset_counter(self)
Reset the counter.
source code
 
read_counter(self)
Read the counter value.
source code
 
waitms(self, ms)
Wait some milliseconds.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

pulse_bit(self, bitnum, usecs)

source code 

Set the state of DIO line bitnum to 1 for usecs microseconds then 0. N.B. Minimum achievable pulse width is about 3ms.

read_channel(self, channel, grange)

source code 

Read the voltage on analog input channel using full scale range grange. grange may be: '10V', '5V', '2.5V', '2V', '1.25V', '1V', '625mV', '312mV'