Skip to content

DD_SENSOR_CONFIG

Structure Definition

1
2
3
4
5
6
7
8
typedef struct _dd_sensor_config_
{
    unsigned int iSize;             
    unsigned char enable;           
    unsigned char bNO;              
    unsigned short holdTime;        
    char name[DD_MAX_NAME_BUF_LEN]; 
} DD_SENSOR_CONFIG;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_SENSOR_CONFIG
{
    public UInt32 iSize;
    public byte enable;
    public byte bNO;
    public UInt16 holdTime;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
    public byte[] name;
}

Function Description

Sensor configuration structure.

Member Description

Member Type Remark
iSize unsigned int The length of this structure.
enable unsigned char Whether to enable detection.
bNO unsigned char Device Type: Normally Open or Normally Closed.
holdTime unsigned short Delay time.
name char[DD_MAX_NAME_BUF_LEN] The name of the device.
Error Code