servicepoint/crates/servicepoint_binding_c/src/lib.rs

31 lines
803 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 19:38:43 +02:00
/// C functions for interacting with `BitVec`s
pub mod bit_vec;
2024-05-28 19:38:43 +02:00
/// C functions for interacting with `ByteGrid`s
pub mod byte_grid;
2024-05-28 19:38:43 +02:00
/// C functions for interacting with `BitVec`s
pub mod c_slice;
2024-05-28 19:38:43 +02:00
/// C functions for interacting with `Command`s
pub mod command;
2024-05-28 19:38:43 +02:00
/// C functions for interacting with `Connection`s
pub mod connection;
2024-05-28 19:38:43 +02:00
/// C functions for interacting with `Packet`s
pub mod packet;
2024-05-28 19:38:43 +02:00
/// C functions for interacting with `PixelGrid`s
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;