mod authenticate;
mod commands;
mod register;
mod version;
pub use {authenticate::*, commands::*, register::*, version::*};
#[repr(u16)]
#[derive(Debug)]
pub enum ResponseStatusWords {
NoError = 0x9000,
ConditionsNotSatisfied = 0x6985,
WrongData = 0x6A80,
WrongLength = 0x6700,
ClaNotSupported = 0x6E00,
InsNotSupported = 0x6D00,
}
impl From<ResponseStatusWords> for u16 {
#[expect(clippy::as_conversions)]
fn from(sw: ResponseStatusWords) -> Self {
sw as u16
}
}
impl ResponseStatusWords {
pub fn as_primitive(self) -> u16 {
self.into()
}
}