embedded_audio_driver/lib.rs
1pub mod stream;
2pub mod decoder;
3
4#[derive(Debug)]
5pub enum Error {
6 /// Invalid parameters provided
7 InvalidParameter,
8 /// Device is not initialized
9 NotInitialized,
10 /// Device is busy
11 Busy,
12 /// Operation timed out
13 Timeout,
14 /// Buffer is full
15 BufferFull,
16 /// Buffer is empty
17 BufferEmpty,
18 /// Device hardware error
19 DeviceError,
20 /// Operation not supported
21 Unsupported,
22}
23
24pub type Result<T> = core::result::Result<T, Error>;