Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# DD_MOTION_CONFIG

### Structure Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    8
    typedef struct _dd_motion_config_
    {
        unsigned int iSize;
        unsigned char enable;
        unsigned char recv;
        unsigned short holdTime;
        DD_MOTION_AREA area;
    } DD_MOTION_CONFIG;

    1
    2
    3
    4
    5
    6
    7
    8
    9
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct DD_MOTION_CONFIG
    {
        public UInt32 iSize;
        public byte enable;
        public byte recv;
        public UInt16 holdTime;
        public DD_MOTION_AREA area;
    }

### Function Description

Move the configuration structure.

### Member Description

Member | Type | Remark
--- | --- | ---
iSize | unsigned int | The length of this structure.
enable | unsigned char | Whether to enable motion detection.
recv | unsigned char | Reserved bytes.
holdTime | unsigned short | Delay time.
area | `DD_MOTION_AREA` | Regional settings.

Error Code