OpenBIC
OpenSource Bridge-IC
tmp431.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 TMP431_H
18#define TMP431_H
19
20#include "sensor.h"
21
22bool tmp432_get_temp_status(sensor_cfg *cfg, uint8_t *temp_status);
24
30};
31
40
41 /* TMP432 Limit Registers */
44
47
50
53
56
59
63};
64
65bool tmp432_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
66 uint32_t *millidegree_celsius);
67bool tmp432_set_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
68 uint32_t *millidegree_celsius);
69
70#endif
Definition: sensor.h:256
bool tmp432_get_temp_status(sensor_cfg *cfg, uint8_t *temp_status)
Definition: tmp431.c:333
TMP431_REIGSTER_MAP
Definition: tmp431.h:32
@ TMP432_REMOTE_1_LOW_LIMIT_HIGH_BYTE_WRITE_REG
Definition: tmp431.h:52
@ REMOTE_TEMPERATURE_2_HIGH_BYTE
Definition: tmp431.h:38
@ TMP432_LOCAL_LOW_LIMIT_HIGH_BYTE_WRITE_REG
Definition: tmp431.h:46
@ TMP432_REMOTE_1_HIGH_LIMIT_HIGH_BYTE_READ_REG
Definition: tmp431.h:48
@ REMOTE_TEMPERATURE_2_LOW_BYTE
Definition: tmp431.h:39
@ LOCAL_TEMPERATURE_LOW_BYTE
Definition: tmp431.h:37
@ TMP432_REMOTE_1_LOW_LIMIT_HIGH_BYTE_READ_REG
Definition: tmp431.h:51
@ TMP432_REMOTE_2_THERM_LIMIT_REG
Definition: tmp431.h:62
@ TMP432_REMOTE_2_HIGH_LIMIT_HIGH_BYTE_READ_REG
Definition: tmp431.h:54
@ TMP432_REMOTE_2_LOW_LIMIT_HIGH_BYTE_WRITE_REG
Definition: tmp431.h:58
@ TMP432_REMOTE_2_LOW_LIMIT_HIGH_BYTE_READ_REG
Definition: tmp431.h:57
@ LOCAL_TEMPERATURE_HIGH_BYTE
Definition: tmp431.h:33
@ TMP432_LOCAL_HIGH_LIMIT_HIGH_BYTE_WRITE_REG
Definition: tmp431.h:43
@ REMOTE_TEMPERATURE_HIGH_BYTE
Definition: tmp431.h:34
@ TMP432_LOCAL_LOW_LIMIT_HIGH_BYTE_READ_REG
Definition: tmp431.h:45
@ TMP432_LOCAL_HIGH_LIMIT_HIGH_BYTE_READ_REG
Definition: tmp431.h:42
@ TMP432_REMOTE_2_HIGH_LIMIT_HIGH_BYTE_WRITE_REG
Definition: tmp431.h:55
@ TMP432_LOCAL_THERM_LIMIT_REG
Definition: tmp431.h:60
@ TMP432_REMOTE_1_HIGH_LIMIT_HIGH_BYTE_WRITE_REG
Definition: tmp431.h:49
@ TMP432_REMOTE_1_THERM_LIMIT_REG
Definition: tmp431.h:61
@ CONFIGURATION_REGISTER_1
Definition: tmp431.h:35
@ REMOTE_TEMPERATURE_LOW_BYTE
Definition: tmp431.h:36
bool tmp432_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
Definition: tmp431.c:118
TMP431_CHANNELS
Definition: tmp431.h:25
@ TMP432_REMOTE_TEMPERATRUE_1
Definition: tmp431.h:28
@ TMP432_REMOTE_TEMPERATRUE_2
Definition: tmp431.h:29
@ TMP431_LOCAL_TEMPERATRUE
Definition: tmp431.h:26
@ TMP431_REMOTE_TEMPERATRUE
Definition: tmp431.h:27
bool tmp432_clear_temp_status(sensor_cfg *cfg)
Definition: tmp431.c:354
bool tmp432_set_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
Definition: tmp431.c:213