1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) 2024 Jake Swensen
// SPDX-License-Identifier: MPL-2.0
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
use super::RegisterAddress;
use emc230x_macros::RegisterAddress;
bitfield::bitfield! {
/// The Fan Spin Status register indicates which fan driver has failed to spin up.
/// All bits are Cleared upon a read if the error condition has been removed.
#[derive(Clone, Copy, RegisterAddress)]
#[register(address = 0x25, default = 0x00)]
pub struct FanStallStatus(u8);
impl Debug;
/// Fan 5 Stall Status
///
/// 0: Stall has not been detected.
///
/// 1: Tachometer count has exceeded maximum valid TACH count, indicating stall.
pub f5stl, _: 4;
/// Fan 4 Stall Status
///
/// 0: Stall has not been detected.
///
/// 1: Tachometer count has exceeded maximum valid TACH count, indicating stall.
pub f4stl, _: 3;
/// Fan 3 Stall Status
///
/// 0: Stall has not been detected.
///
/// 1: Tachometer count has exceeded maximum valid TACH count, indicating stall.
pub f3stl, _: 2;
/// Fan 2 Stall Status
///
/// 0: Stall has not been detected.
///
/// 1: Tachometer count has exceeded maximum valid TACH count, indicating stall.
pub f2stl, _: 1;
/// Fan 1 Stall Status
///
/// 0: Stall has not been detected.
///
/// 1: Tachometer count has exceeded maximum valid TACH count, indicating stall.
pub f1stl, _: 0;
}