HFCC-01 Low-Level Software (LLSW) Rel_6802_HFCC-01-RP-CSAR-CB
Loading...
Searching...
No Matches
mmapDiscreteIn.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025, TUSAS Malaysia
3 * All rights reserved.
4 * This file contains proprietary information. This
5 * file shall not be duplicated, used, modified,
6 * or disclosed in whole or in part without
7 * the express written consent of TUSAS.
8 */
9
17
18#ifndef INCLUDED_MMAP_DISCRETE_IN_H
19#define INCLUDED_MMAP_DISCRETE_IN_H
20
21// =========================================================================
22
23// mfb - memory map offset for DI
24#define MMAP_DIN_MOD_OFFSET (0x2000U)
25
26// =========================================================================
27
28// device block memory offset
29#define MMAP_DIN_DEV_OFFSET (0x0100U)
30
31// =========================================================================
32
33// device block members memory offset
34#define MMAP_DIN_BANK_CFG_DEV (0x0000U)
35#define MMAP_DIN_CENHYS_TRESH (0x0004U)
36#define MMAP_DIN_PBIT_STATUS (0x0050U)
37#define MMAP_DIN_PBIT_CH_STATUS (0x0054U)
38#define MMAP_DIN_CBIT_STATUS (0x0058U)
39#define MMAP_DIN_CBIT_CH_STATUS (0x005CU)
40#define MMAP_DIN_TEMP_RAW (0x0068U)
41#define MMAP_DIN_READ_INPUT (0x0078U)
42
43// =========================================================================
44
45// Bit position for PBIT and CBIT
46#define MMAP_DIN_POS_PBIT_NOT_DONE (0U)
47#define MMAP_DIN_POS_PBIT_PWR_3V3_FAULT (1U)
48#define MMAP_DIN_POS_PBIT_IC_COMM_ERR (2U)
49
50#define MMAP_DIN_POS_CBIT_NOT_START (0U)
51#define MMAP_DIN_POS_CBIT_PWR_3V3_FAULT (1U)
52#define MMAP_DIN_POS_CBIT_IC_COMM_ERR (2U)
53#define MMAP_DIN_POS_CBIT_UT (3U)
54#define MMAP_DIN_POS_CBIT_OT (4U)
55#define MMAP_DIN_POS_CBIT_F_3V3 (5U)
56#define MMAP_DIN_POS_CBIT_F_VWET (6U)
57#define MMAP_DIN_POS_CBIT_F_3V3_BIT (7U)
58#define MMAP_DIN_POS_CBIT_F_VWET_BIT (8U)
59
60// =========================================================================
61
62// memory map constrains
63#define MMAP_DIN_TEMP_LSB (0.005F)
64
65// =========================================================================
66
67#endif // INCLUDED_MMAP_DIN_H