PifHardwareInfo
pub struct PifHardwareInfo
What the attached PIF can do, as data.
Nothing above this branches on the PIF's model.
PifHardwareInfo — fields
digital_input_count: u8
Number of digital input channels.
Zero is a real answer, not a missing one: the Xi 80 and Xi 410 have none, which is why an analog input with a threshold is how those cameras take a signal in.
digital_output_count: u8
Number of digital output channels.
analog_input_count: u8
Number of analog input channels.
analog_output_count: u8
Number of analog output channels.
stackable_device_count: u8
Physical devices the flat channel space spans.
sdk_calibrated: bool
Whether this kind of interface carries a per-channel calibration slope that the device applies, in converter-code space.
A property of the interface kind, not of the SDK. It does not
mean the SDK is applying a calibration, and it says nothing
about PifAnalogCalibration, which the SDK does not apply at
all. The slope it refers to is the interface's own factory trim,
per channel, and it cannot be read back.
has_fail_safe: bool
Whether a fail-safe line exists at all.
autonomy: PifAutonomy
How much the camera firmware can drive unattended.
supported_analog_output_range_count: u32
How many analog output ranges this hardware supports.
PifHardwareInfo — methods
pub fn standard() -> Self
A layout describing a standard PIF: two channels of each sort, with a fail-safe line.
This is what crate::Camera::attach_simulated_pif takes when
it is told what shape to present. Two rather than one, because
an off-by-one in a channel index is invisible on a
single-channel device; and zero digital inputs is worth setting
deliberately, because the Xi families really have none.