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
54
55
56
57
58
59
60
61
// 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! {
#[derive(Clone, Copy, RegisterAddress)]
#[register(address = 0x29, default = 0x00)]
pub struct FanInterruptEnable(u8);
impl Debug;
/// Fan 5 Interrupt Enable
///
/// Allows the fan to assert the !ALERT pin if an error condition is detected.
///
/// 0: Fan is operating within limits.
///
/// 1: Fan has an error condition.
pub f5iten, _: 4;
/// Fan 4 Interrupt Enable
///
/// Allows the fan to assert the !ALERT pin if an error condition is detected.
///
/// 0: Fan is operating within limits.
///
/// 1: Fan has an error condition.
pub f4iten, _: 3;
/// Fan 3 Interrupt Enable
///
/// Allows the fan to assert the !ALERT pin if an error condition is detected.
///
/// 0: Fan is operating within limits.
///
/// 1: Fan has an error condition.
pub f3iten, _: 2;
/// Fan 2 Interrupt Enable
///
/// Allows the fan to assert the !ALERT pin if an error condition is detected.
///
/// 0: Fan is operating within limits.
///
/// 1: Fan has an error condition.
pub f2iten, _: 1;
/// Fan 1 Interrupt Enable
///
/// Allows the fan to assert the !ALERT pin if an error condition is detected.
///
/// 0: Fan is operating within limits.
///
/// 1: Fan has an error condition.
pub f1iten, _: 0;
}