HFCC-01 Low-Level Software (LLSW)
Rel_6802_HFCC-01-RP-CSAR-CB
Toggle main menu visibility
Loading...
Searching...
No Matches
mmapRvdt.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
*/
16
17
#ifndef INCLUDED_MMAP_RVDT_H
18
#define INCLUDED_MMAP_RVDT_H
19
20
#include "
driverStatus.h
"
21
#include "commonDataTypes.h"
22
23
// =========================================================================
24
25
// mfb - memory map offset for RVDT
26
#define MMAP_RVDT_MOD_OFFSET (0x4000U)
27
#define MMAP_RVDT_BIT_MOD_OFFSET (0x2000U)
// add with rvdt base address
28
29
// =========================================================================
30
31
// device block memory offset
32
#define MMAP_RVDT_DEV_OFFSET (0x0320)
33
#define MMAP_RVDT_BIT_DEV_OFFSET (0x0400)
34
35
// =========================================================================
36
37
#define MMAP_RVDT_POS_CH_STATUS (4U)
38
39
// masking
40
#define MMAP_RVDT_MASK_CH_STATUS (0x30U)
41
42
// RVDT module device block members memory offset
43
#define MMAP_RVDT_EN_PWR (0x0000U)
44
#define MMAP_RVDT_EN_REF (0x0004U)
45
#define MMAP_RVDT_CFG_WAVE_GEN (0x0008U)
46
#define MMAP_RVDT_EN_SENSE (0x000CU)
47
#define MMAP_RVDT_CFG_SEC1 (0x0010U)
48
#define MMAP_RVDT_CFG_SEC2 (0x0014U)
49
#define MMAP_RVDT_CFG_SEC1_LPF (0x0018U)
50
#define MMAP_RVDT_CFG_SEC2_LPF (0x001CU)
51
#define MMAP_RVDT_CFG_SEC1_BPF_B1 (0x0020U)
52
#define MMAP_RVDT_CFG_SEC1_BPF_A2 (0x0024U)
53
#define MMAP_RVDT_CFG_SEC1_BPF_A3 (0x0028U)
54
#define MMAP_RVDT_CFG_SEC2_BPF_B1 (0x002CU)
55
#define MMAP_RVDT_CFG_SEC2_BPF_A2 (0x0030U)
56
#define MMAP_RVDT_CFG_SEC2_BPF_A3 (0x0034U)
57
#define MMAP_RVDT_WAVE_RAM_DATA (0x003CU)
58
#define MMAP_RVDT_CONTROL_CMD (0x0258U)
59
#define MMAP_RVDT_DIAGNOSTIC (0x0280U)
60
#define MMAP_RVDT_PBIT_STATUS (0x0284U)
61
#define MMAP_RVDT_CBIT_STATUS (0x0288U)
62
#define MMAP_RVDT_TEMP_RAW (0x028CU)
63
#define MMAP_RVDT_SENSE1_SENSE2_DATA (0x02BCU)
64
65
// RVDT BIT module device block members memory offset
66
#define MMAP_RVDT_BIT_CFG_SEC1_LPF (0x0010U)
67
#define MMAP_RVDT_BIT_CFG_SEC1_BPF_B1 (0x0014U)
68
#define MMAP_RVDT_BIT_CFG_SEC1_BPF_A2 (0x0018U)
69
#define MMAP_RVDT_BIT_CFG_SEC1_BPF_A3 (0x001CU)
70
#define MMAP_RVDT_BIT_PBIT_STATUS (0x0090U)
71
#define MMAP_RVDT_BIT_CBIT_STATUS (0x0094U)
72
73
// =========================================================================
74
75
// Bit position for PBIT operational IC
76
#define MMAP_RVDT_POS_PBIT_DONE (0U)
77
#define MMAP_RVDT_POS_PBIT_WRAM_FAIL (2U)
78
#define MMAP_RVDT_POS_PBIT_RAM_FAIL (3U)
79
#define MMAP_RVDT_POS_PBIT_IC_COMM_FAIL (4U)
80
81
// Bit position for PBIT BIT IC
82
#define MMAP_RVDT_POS_PBIT_BIT_DONE (0U)
83
#define MMAP_RVDT_POS_PBIT_BIT_IC_COMM_FAIL (1U)
84
#define MMAP_RVDT_POS_PBIT_BIT_RAM_FAIL (2U)
85
#define MMAP_RVDT_POS_PBIT_BIT_WRAM_FAIL (3U)
86
#define MMAP_RVDT_POS_PBIT_IOEXP_DONE (4U)
87
#define MMAP_RVDT_POS_PBIT_IOEXP_IC_COMM_FAIL (5U)
88
89
// Bit position for CBIT operational IC
90
#define MMAP_RVDT_POS_CBIT_START (0U)
91
#define MMAP_RVDT_POS_CBIT_PG_3V3 (1U)
92
#define MMAP_RVDT_POS_CBIT_OVT (2U)
93
#define MMAP_RVDT_POS_CBIT_F_3V3 (3U)
94
#define MMAP_RVDT_POS_CBIT_PG_CH (4U)
95
#define MMAP_RVDT_POS_CBIT_F_3V3_BIT (5U)
96
#define MMAP_RVDT_POS_CBIT_PG_BIT (6U)
97
#define MMAP_RVDT_POS_CBIT_IC_COMM_FAIL (7U)
98
#define MMAP_RVDT_POS_CBIT_PG_3V3_BIT (8U)
99
#define MMAP_RVDT_POS_CBIT_PG_15V_IO (9U)
100
#define MMAP_RVDT_POS_CBIT_PG_15V_BIT (10U)
101
#define MMAP_RVDT_POS_CBIT_F_3V3_ISO (11U)
102
#define MMAP_RVDT_POS_CBIT_F_3V3_BIT_ISO (12U)
103
#define MMAP_RVDT_POS_CBIT_UNDER_TEMP (13U)
104
#define MMAP_RVDT_POS_CBIT_S1_FAULT (14U)
105
#define MMAP_RVDT_POS_CBIT_S2_FAULT (15U)
106
#define MMAP_RVDT_POS_CBIT_EXC_FAULT (16U)
107
108
// Bit position for CBIT BIT IC
109
#define MMAP_RVDT_POS_CBIT_BIT_COMM_FAIL (0U)
110
#define MMAP_RVDT_POS_CBIT_IOEXP_COMM_FAIL (1U)
111
112
// Bit position for diagnostic
113
#define MMAP_RVDT_POS_DIAG_REF_OVER_VOLT (0U)
114
#define MMAP_RVDT_POS_DIAG_REF_UNDER_VOLT (1U)
115
#define MMAP_RVDT_POS_DIAG_P1_OVER_VOLT (2U)
116
#define MMAP_RVDT_POS_DIAG_P1_UNDER_VOLT (3U)
117
#define MMAP_RVDT_POS_DIAG_P1_OVER_CURRENT (4U)
118
#define MMAP_RVDT_POS_DIAG_P2_OVER_VOLT (5U)
119
#define MMAP_RVDT_POS_DIAG_P2_UNDER_VOLT (6U)
120
#define MMAP_RVDT_POS_DIAG_P2_OVER_CURRENT (7U)
121
#define MMAP_RVDT_POS_DIAG_S1_GAIN_OVER_VOLT (8U)
122
#define MMAP_RVDT_POS_DIAG_S2_GAIN_OVER_VOLT (9U)
123
124
// =========================================================================
125
126
// mmap constraint
127
#define MMAP_RVDT_RAM_SIZE (128U)
128
#define MMAP_RVDT_TEMP_LSB (0.005F)
129
130
// =========================================================================
131
132
#endif
// INCLUDED_MMAP_RVDT_H
driverStatus.h
17 Source Code
HFCC-01-CD-SC-0.22.4
Release_Packages
DlmApi
DeviceDriver
Source
Rvdt
mmapRvdt.h
Generated by
1.18.0