1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! CTRE Phoenix bindings for Rust

extern crate ctre_sys;
#[cfg(feature = "usage-reporting")]
extern crate wpilib_sys;

pub use ctre_sys::{ErrorCode, ParamEnum};

/// A specialised `Result` for CTRE methods.
pub type Result<T> = std::result::Result<T, ErrorCode>;

#[macro_use]
mod macros;

pub mod canifier;
pub mod motion;
pub mod motor_control;
pub mod sensors;

pub use self::canifier::CANifier;