bnr 0.1.2

Pure Rust implementation of the BNR XFS USB communication protocol
Documentation
1
2
3
4
5
6
7
8
9
10
//! Types and functions for handling system status events.

use bnr_xfs::CdrStatus;

use crate::{with_handle, Result};

/// Gets the status of the CDR device.
pub fn get_status() -> Result<CdrStatus> {
    with_handle::<CdrStatus>(|h| h.get_status())
}