HFCC-01 Low-Level Software (LLSW) Rel_6802_HFCC-01-RP-CSAR-CB
Loading...
Searching...
No Matches
mmapDiscreteOut.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_OUT_H
19#define INCLUDED_MMAP_DISCRETE_OUT_H
20
21#include "driverStatus.h"
22#include "commonDataTypes.h"
23
24// =========================================================================
25
26// mfb - memory map offset for DO
27#define MMAP_DOUT_MOD_OFFSET (0x1000U)
28
29// =========================================================================
30
31// device block memory offset
32#define MMAP_DOUT_DEV_OFFSET (0x0100U)
33
34// =========================================================================
35
36// device block members memory offset
37#define MMAP_DOUT_BANK_CFG_DEV (0x0000U)
38#define MMAP_DOUT_BANK_TYPE_DEV (0x0004U)
39#define MMAP_DOUT_RESET_MODULE (0x0028U)
40#define MMAP_DOUT_BANK_STATUS_FAULT (0x0050U)
41#define MMAP_DOUT_BANK_STATUS_OUTPUT (0x0054U)
42#define MMAP_DOUT_PBIT_STATUS (0x0058U)
43#define MMAP_DOUT_CBIT_STATUS (0x005CU)
44#define MMAP_DOUT_TEMP_RAW (0x0060U)
45#define MMAP_DOUT_STATUS_LOOPBACK (0x0070U)
46#define MMAP_DOUT_CH_STATUS_INTEGRITY (0x0074U)
47#define MMAP_DOUT_BANK_CH_STATE (0x0078U)
48
49// =========================================================================
50
51// Bit position for PBIT and CBIT
52#define MMAP_DOUT_POS_PBIT_DONE (0U)
53#define MMAP_DOUT_POS_PBIT_CHECK (1U)
54
55#define MMAP_DOUT_POS_PBIT_DEV1 (0U)
56#define MMAP_DOUT_POS_PBIT_DEV2 (1U)
57#define MMAP_DOUT_POS_PBIT_DEV3 (2U)
58#define MMAP_DOUT_POS_PBIT_DEV4 (3U)
59#define MMAP_DOUT_POS_PBIT_DEV5 (4U)
60#define MMAP_DOUT_POS_PBIT_DEV6 (5U)
61#define MMAP_DOUT_POS_PBIT_DEV7 (6U)
62#define MMAP_DOUT_POS_PBIT_DEV8 (7U)
63#define MMAP_DOUT_POS_PBIT_DEV9 (8U)
64#define MMAP_DOUT_POS_PBIT_DEV10 (9U)
65#define MMAP_DOUT_POS_PBIT_DEV11 (10U)
66
67#define MMAP_DOUT_POS_CBIT_START (0U)
68#define MMAP_DOUT_POS_CBIT_PG_3V3 (1U)
69#define MMAP_DOUT_POS_CBIT_UT (2U)
70#define MMAP_DOUT_POS_CBIT_OT (3U)
71#define MMAP_DOUT_POS_CBIT_BIT_UT (4U)
72#define MMAP_DOUT_POS_CBIT_BIT_OT (5U)
73#define MMAP_DOUT_POS_CBIT_MAIN_COMM_ERR (6U)
74#define MMAP_DOUT_POS_CBIT_3V3 (4U)
75#define MMAP_DOUT_POS_CBIT_28V (5U)
76#define MMAP_DOUT_POS_CBIT_3V3_BIT (6U)
77#define MMAP_DOUT_POS_CBIT_VWET_BIT (7U)
78
79#define MMAP_DOUT_POS_CBIT_LB_NOT_RUN_IC1 (0U)
80#define MMAP_DOUT_POS_CBIT_LB_NOT_RUN_IC2 (1U)
81#define MMAP_DOUT_POS_CBIT_LB_PG_3V3_IC1 (2U)
82#define MMAP_DOUT_POS_CBIT_LB_PG_3V3_IC2 (3U)
83#define MMAP_DOUT_POS_CBIT_LB_COMM_ERR_IC1 (4U)
84#define MMAP_DOUT_POS_CBIT_LB_COMM_ERR_IC2 (5U)
85#define MMAP_DOUT_POS_CBIT_LB_NOT_RUN (0U)
86#define MMAP_DOUT_POS_CBIT_LB_PG_3V3 (1U)
87#define MMAP_DOUT_POS_CBIT_LB_COMM_ERR (2U)
88
89#define MMAP_DOUT_POS_CBIT_TW (0U)
90#define MMAP_DOUT_POS_CBIT_PSF (2U)
91#define MMAP_DOUT_POS_CBIT_TSD (4U)
92
93#define MMAP_DOUT_POS_CBIT_OC (0U)
94#define MMAP_DOUT_POS_CBIT_ULD (1U)
95#define MMAP_DOUT_POS_STAT_HB_MASK (0x00000003U)
96#define MMAP_DOUT_POS_STAT_HB_BIT_SIZE (2U)
97
98#define MMAP_DOUT_POS_CBIT_SO_CW (0U)
99#define MMAP_DOUT_POS_CBIT_SO_EN (3U)
100#define MMAP_DOUT_POS_CBIT_SO_CCW (4U)
101#define MMAP_DOUT_POS_CBIT_SG_CLCH (5U)
102#define MMAP_DOUT_POS_CBIT_G_CLCH (5U)
103#define MMAP_DOUT_POS_CBIT_S_CLCH (6U)
104
105#define MMAP_DOUT_POS_CBIT_SO_EXC1 (0U)
106#define MMAP_DOUT_POS_CBIT_SO_EXC2 (4U)
107#define MMAP_DOUT_POS_CBIT_SO_EXC3 (5U)
108#define MMAP_DOUT_POS_CBIT_SO_EXC4 (3U)
109
110#define MMAP_DOUT_POS_CBIT_SG_EXT1 (0U)
111#define MMAP_DOUT_POS_CBIT_SG_EXT2 (0U)
112#define MMAP_DOUT_POS_CBIT_SG_EXT3 (3U)
113#define MMAP_DOUT_POS_CBIT_SG_EXT4 (3U)
114
115#define MMAP_DOUT_POS_CBIT_SG_RET1 (1U)
116#define MMAP_DOUT_POS_CBIT_SG_RET2 (1U)
117#define MMAP_DOUT_POS_CBIT_SG_RET3 (2U)
118#define MMAP_DOUT_POS_CBIT_SG_RET4 (2U)
119
120#define MMAP_DOUT_POS_CBIT_G_EXT1 (0U)
121#define MMAP_DOUT_POS_CBIT_S_EXT1 (1U)
122#define MMAP_DOUT_POS_CBIT_G_EXT2 (0U)
123#define MMAP_DOUT_POS_CBIT_S_EXT2 (1U)
124#define MMAP_DOUT_POS_CBIT_G_EXT3 (6U)
125#define MMAP_DOUT_POS_CBIT_S_EXT3 (7U)
126#define MMAP_DOUT_POS_CBIT_G_EXT4 (6U)
127#define MMAP_DOUT_POS_CBIT_S_EXT4 (7U)
128
129#define MMAP_DOUT_POS_CBIT_G_RET1 (2U)
130#define MMAP_DOUT_POS_CBIT_S_RET1 (3U)
131#define MMAP_DOUT_POS_CBIT_G_RET2 (2U)
132#define MMAP_DOUT_POS_CBIT_S_RET2 (3U)
133#define MMAP_DOUT_POS_CBIT_G_RET3 (4U)
134#define MMAP_DOUT_POS_CBIT_S_RET3 (5U)
135#define MMAP_DOUT_POS_CBIT_G_RET4 (4U)
136#define MMAP_DOUT_POS_CBIT_S_RET4 (5U)
137
138#define MMAP_DOUT_POS_CBIT_OG_CH1 (0U)
139#define MMAP_DOUT_POS_CBIT_OG_CH2 (4U)
140#define MMAP_DOUT_POS_CBIT_OG_CH3 (5U)
141#define MMAP_DOUT_POS_CBIT_OG_CH4 (3U)
142#define MMAP_DOUT_POS_CBIT_OG_CH5 (1U)
143#define MMAP_DOUT_POS_CBIT_OG_CH6 (2U)
144
145#define MMAP_DOUT_POS_CBIT_OG_CH7 (0U)
146#define MMAP_DOUT_POS_CBIT_OG_CH8 (4U)
147#define MMAP_DOUT_POS_CBIT_OG_CH9 (5U)
148#define MMAP_DOUT_POS_CBIT_OG_CH10 (3U)
149#define MMAP_DOUT_POS_CBIT_OG_CH11 (1U)
150#define MMAP_DOUT_POS_CBIT_OG_CH12 (2U)
151
152#define MMAP_DOUT_POS_CBIT_OG_CH13 (0U)
153#define MMAP_DOUT_POS_CBIT_OG_CH14 (4U)
154#define MMAP_DOUT_POS_CBIT_OG_CH15 (5U)
155#define MMAP_DOUT_POS_CBIT_OG_CH16 (3U)
156
157#define MMAP_DOUT_POS_CBIT_SO_CH17 (0U)
158#define MMAP_DOUT_POS_CBIT_SO_CH18 (4U)
159#define MMAP_DOUT_POS_CBIT_SO_CH19 (5U)
160#define MMAP_DOUT_POS_CBIT_SO_CH20 (3U)
161#define MMAP_DOUT_POS_CBIT_SO_CH21 (1U)
162#define MMAP_DOUT_POS_CBIT_SO_CH22 (2U)
163
164// =========================================================================
165
166// memory map constrains
167#define MMAP_DOUT_TEMP_LSB (0.005F)
168
169// =========================================================================
170
171#endif // INCLUDED_MMAP_DISCRETE_OUT_H