2024-05-28 19:38:43 +02:00
|
|
|
//! C API wrapper for the `servicepoint` crate.
|
|
|
|
|
2024-05-26 13:15:11 +02:00
|
|
|
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
|
2024-05-26 13:15:11 +02:00
|
|
|
pub mod bit_vec;
|
2024-05-28 19:38:43 +02:00
|
|
|
|
|
|
|
/// C functions for interacting with `ByteGrid`s
|
2024-05-26 13:15:11 +02:00
|
|
|
pub mod byte_grid;
|
2024-05-28 19:38:43 +02:00
|
|
|
|
|
|
|
/// C functions for interacting with `BitVec`s
|
2024-05-26 13:15:11 +02:00
|
|
|
pub mod c_slice;
|
2024-05-28 19:38:43 +02:00
|
|
|
|
|
|
|
/// C functions for interacting with `Command`s
|
2024-05-26 13:15:11 +02:00
|
|
|
pub mod command;
|
2024-05-28 19:38:43 +02:00
|
|
|
|
|
|
|
/// C functions for interacting with `Connection`s
|
2024-05-26 13:15:11 +02:00
|
|
|
pub mod connection;
|
2024-05-28 19:38:43 +02:00
|
|
|
|
|
|
|
/// C functions for interacting with `Packet`s
|
2024-05-26 13:15:11 +02:00
|
|
|
pub mod packet;
|
2024-05-28 19:38:43 +02:00
|
|
|
|
|
|
|
/// C functions for interacting with `PixelGrid`s
|
2024-05-26 13:15:11 +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.
|
2024-05-26 13:15:11 +02:00
|
|
|
pub const FRAME_PACING_MS: u32 = servicepoint::FRAME_PACING.as_millis() as u32;
|