servicepoint/crates/servicepoint_binding_c/src/lib.rs

26 lines
497 B
Rust
Raw Normal View History

2024-05-28 19:38:43 +02:00
//! C API wrapper for the `servicepoint` crate.
pub use servicepoint::{
CompressionCode, PIXEL_COUNT, PIXEL_HEIGHT, PIXEL_WIDTH, TILE_HEIGHT,
TILE_SIZE, TILE_WIDTH,
};
2024-05-28 21:25:59 +02:00
pub use crate::c_slice::CByteSlice;
pub mod bit_vec;
2024-05-28 19:38:43 +02:00
pub mod byte_grid;
2024-05-28 19:38:43 +02:00
pub mod command;
2024-05-28 19:38:43 +02:00
pub mod connection;
2024-05-28 19:38:43 +02:00
pub mod packet;
2024-05-28 19:38:43 +02:00
pub mod pixel_grid;
2024-05-28 19:38:43 +02:00
/// The minimum time needed for the display to refresh the screen in ms.
pub const FRAME_PACING_MS: u32 = servicepoint::FRAME_PACING.as_millis() as u32;
2024-05-28 21:25:59 +02:00
mod c_slice;