OpenBIC
OpenSource Bridge-IC
emc1413.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 EMC1413_H
18#define EMC1413_H
19
20#include "sensor.h"
21
22bool emc1413_get_temp_status(sensor_cfg *cfg, uint8_t *temp_status);
24
29};
30
38
39 /* EMC1413 Limit Registers */
54};
55
56bool emc1413_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
57 uint32_t *millidegree_celsius);
58bool emc1413_set_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index,
59 uint32_t *millidegree_celsius);
60
61#endif
EMC1413_REIGSTER_MAP
Definition: emc1413.h:31
@ EMC1413_INTERNAL_HIGH_LIMIT_REG
Definition: emc1413.h:40
@ EMC1413_EXTERNAL_2_LOW_LIMIT_HIGH_BYTE_REG
Definition: emc1413.h:48
@ INTERNAL_DIODE_LOW_BYTE
Definition: emc1413.h:35
@ EXTERNAL_DIODE_1_LOW_BYTE
Definition: emc1413.h:36
@ INTERNAL_DIODE_HIGH_BYTE
Definition: emc1413.h:32
@ EMC1413_EXTERNAL_1_LOW_LIMIT_HIGH_BYTE_REG
Definition: emc1413.h:44
@ EMC1413_INTERNAL_LOW_LIMIT_REG
Definition: emc1413.h:41
@ EXTERNAL_DIODE_2_HIGH_BYTE
Definition: emc1413.h:34
@ EMC1413_EXTERNAL_2_HIGH_LIMIT_LOW_BYTE_REG
Definition: emc1413.h:47
@ EMC1413_EXTERNAL_1_THERM_LIMIT_REG
Definition: emc1413.h:51
@ EMC1413_EXTERNAL_1_HIGH_LIMIT_HIGH_BYTE_REG
Definition: emc1413.h:42
@ EXTERNAL_DIODE_1_HIGH_BYTE
Definition: emc1413.h:33
@ EMC1413_EXTERNAL_2_HIGH_LIMIT_HIGH_BYTE_REG
Definition: emc1413.h:46
@ EMC1413_EXTERNAL_1_HIGH_LIMIT_LOW_BYTE_REG
Definition: emc1413.h:43
@ EMC1413_EXTERNAL_2_THERM_LIMIT_REG
Definition: emc1413.h:52
@ EMC1413_REG_MAX
Definition: emc1413.h:53
@ EXTERNAL_DIODE_2_LOW_BYTE
Definition: emc1413.h:37
@ EMC1413_INTERNAL_THERM_LIMIT_REG
Definition: emc1413.h:50
@ EMC1413_EXTERNAL_1_LOW_LIMIT_LOW_BYTE_REG
Definition: emc1413.h:45
@ EMC1413_EXTERNAL_2_LOW_LIMIT_LOW_BYTE_REG
Definition: emc1413.h:49
EMC1413_CHANNELS
Definition: emc1413.h:25
@ EMC1413_REMOTE_TEMPERATRUE_1
Definition: emc1413.h:27
@ EMC1413_REMOTE_TEMPERATRUE_2
Definition: emc1413.h:28
@ EMC1413_LOCAL_TEMPERATRUE
Definition: emc1413.h:26
bool emc1413_clear_temp_status(sensor_cfg *cfg)
Definition: emc1413.c:354
bool emc1413_set_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
Definition: emc1413.c:218
bool emc1413_get_temp_threshold(sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
Definition: emc1413.c:120
bool emc1413_get_temp_status(sensor_cfg *cfg, uint8_t *temp_status)
Definition: emc1413.c:333
Definition: sensor.h:256