Class that encapsulates PMD-1608FS functionality.
|
|
|
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
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|