HFCC-01 Low-Level Software (LLSW) Rel_6802_HFCC-01-RP-CSAR-CB
Loading...
Searching...
No Matches
modDiscreteIn.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
16
17#ifndef INCLUDED_MOD_DISCRETE_IN_H
18#define INCLUDED_MOD_DISCRETE_IN_H
19
20#include "commonDataTypes.h"
21#include "modStatus.h"
22#include "modConfig.h"
23
27typedef enum
28{
29 DI_DEFAULT = (0U),
30 DI_OG_GND = (1U),
31 DI_OG_OPEN = (2U),
32 DI_SO_SPLY = (3U),
33 DI_SO_OPEN = (4U),
34 DI_SG_SPLY = (5U),
35 DI_SG_GND = (6U)
36} DInLogic;
37
69ModStatus modDiscreteIn_read(const DInChannelNum channelNum, DInLogic *pDiscreteValue);
70
71#endif // INCLUDED_MOD_DISCRETE_IN_H
DInChannelNum
This is enum definition for channel number for each discrete input channel.
Definition modConfig.h:148
DInLogic
This is enum definition for the state logic of discrete input.
Definition modDiscreteIn.h:28
@ DI_OG_GND
Ground condition in GROUND/OPEN.
Definition modDiscreteIn.h:30
@ DI_SO_SPLY
Supply condition in SUPPLY/OPEN.
Definition modDiscreteIn.h:32
@ DI_SG_SPLY
Supply condition in SUPPLY/GROUND.
Definition modDiscreteIn.h:34
@ DI_DEFAULT
Default state for Discrete Input.
Definition modDiscreteIn.h:29
@ DI_SG_GND
Ground condition in SUPPLY/GROUND.
Definition modDiscreteIn.h:35
@ DI_OG_OPEN
Open condition in GROUND/OPEN.
Definition modDiscreteIn.h:31
@ DI_SO_OPEN
Open condition in SUPPLY/OPEN.
Definition modDiscreteIn.h:33
ModStatus modDiscreteIn_read(const DInChannelNum channelNum, DInLogic *pDiscreteValue)
modDiscreteIn_read.
Definition modDiscreteIn.c:215
ModStatus
This is enum definition for module status.
Definition modStatus.h:24