dwfpy.digital_io.DigitalIo
- class DigitalIo(device)[source]
Bases:
objectDigital IO module.
Methods
Configures the instrument.
Reads the status and input values of the device.
Resets and configures all instrument parameters to default values.
Attributes
Gets a collection of Digital IO channels.
Gets the device.
Gets the input state of all pins as a bit-mask.
Gets the pins that can be read from as a bit-mask.
Enables or disables the specified pins as an output via a bit-mask.
Gets the pins that can be enabled as an output as a bit-mask.
Gets or sets the ouput state of all pins via a bit-mask.
Gets the pins that can be written to as a bit-mask.
- property channels: Tuple[DigitalIoChannel, ...]
Gets a collection of Digital IO channels.
- Return type
Tuple[DigitalIoChannel,...]
- property input_state: int
Gets the input state of all pins as a bit-mask. Before calling this function, call the ‘read_status()’ function to read the Digital I/O states from the device.
- Return type
int
- property input_state_mask: int
Gets the pins that can be read from as a bit-mask.
- Return type
int
- property output_enable: int
Enables or disables the specified pins as an output via a bit-mask.
- Return type
int
- property output_enable_mask: int
Gets the pins that can be enabled as an output as a bit-mask.
- Return type
int
- property output_state: int
Gets or sets the ouput state of all pins via a bit-mask.
- Return type
int
- property output_state_mask: int
Gets the pins that can be written to as a bit-mask.
- Return type
int