1/// Represents errors that can occur when configuring or validating TSC pin groups.
2#[derive(Debug)]
3pub enum GroupError {
4 /// Error when a group has no sampling capacitor
5 NoSamplingCapacitor,
6 /// Error when a group has neither channel IOs nor a shield IO
7 NoChannelOrShield,
8 /// Error when a group has both channel IOs and a shield IO
9 MixedChannelAndShield,
10 /// Error when there is more than one shield IO across all groups
11 MultipleShields,
12}
13
14/// Error returned when attempting to set an invalid channel pin as active in the TSC.
15#[derive(Debug)]
16pub enum AcquisitionBankError {
17 /// Indicates that one or more of the provided pins is not a valid channel pin.
18 InvalidChannelPin,
19 /// Indicates that multiple channels from the same group were provided.
20 MultipleChannelsPerGroup,
21}
22