fans/lib.rs
1// Copyright (c) 2025 Jake Swensen
2// SPDX-License-Identifier: MPL-2.0
3//
4// This Source Code Form is subject to the terms of the Mozilla Public
5// License, v. 2.0. If a copy of the MPL was not distributed with this
6// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
8#![no_std]
9
10mod connection;
11mod control;
12mod error;
13mod mode;
14mod report;
15mod select;
16
17pub use connection::FanConnection;
18pub use control::FanControl;
19pub use error::Error;
20pub use mode::FanMode;
21pub use report::FanReport;
22pub use select::FanSelect;
23
24/// Type alias for a fan duty cycle.
25pub type FanDutyCycle = u8;
26
27/// Type alias for a fan RPM.
28pub type FanRpm = u16;
29
30/// Type alias for a fan voltage (mV).
31pub type FanVoltage = u32;
32
33/// Type alias for a fan current (mA).
34pub type FanCurrent = u32;