OpenBIC
OpenSource Bridge-IC
nct214.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef NCT214_H
18#define NCT214_H
19
20#define LOCAL_TEMP_REG 0x00
21#define EXTERNAL_TEMP_UPPER_BYTE_REG 0x01
22#define EXTERNAL_TEMP_LOWER_BYTE_REG 0x10
23#define CONFIG_READ_REG 0x03
24#define CONFIG_WRITE_REG 0x09
25
26typedef struct _nct214_init_arg {
27 bool is_init;
30
34};
35
38 NCT_214_TEMPERATURE_RANGE_EXTENDED, // −64°C to +191°C
39};
40#endif
NCT_214_TEMPERATURE_RANGE
Definition: nct214.h:36
@ NCT_214_TEMPERATURE_RANGE_EXTENDED
Definition: nct214.h:38
@ NCT_214_TEMPERATURE_RANGE_0_TO_127
Definition: nct214.h:37
NCT214_CHANNELS
Definition: nct214.h:31
@ NCT214_LOCAL_TEMPERATRUE
Definition: nct214.h:32
@ NCT214_REMOTE_TEMPERATRUE
Definition: nct214.h:33
struct _nct214_init_arg nct214_init_arg
Definition: nct214.h:26
uint8_t temperature_range
Definition: nct214.h:28
bool is_init
Definition: nct214.h:27