cc_talk_host 0.0.5

ccTalk host crate based on cc_talk_core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(dead_code)]

pub mod payout;

/// Represents the possible errors when talking to a ccTalk device.
#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
pub enum DeviceError {
    #[error("timeout waiting for device response")]
    Timeout,
    #[error("checksum mismatch in response")]
    ChecksumMismatch,
    #[error("buffer overflow")]
    BufferOverflow,
    #[error("device sent NACK response")]
    Nack,
    #[error("malformed response from device")]
    MalformedResponse,
}