---
title: hi_isp_slave_sns_sync
description: "定义从模式sensor同步信号配置。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0068.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0068.html
indexId: d9e2f3b60d9a5d5b7e1c0eeed74b4f3c02c3ec1929ecc21db30e4862b422b6e165
---
# hi_isp_slave_sns_sync

#### 说明

定义从模式sensor同步信号配置。


#### 定义

```
typedef struct {
union {
struct {
hi_u32
bit16_reserved : 16;
hi_u32
bit_h_inv : 1;
hi_u32
bit_v_inv : 1;
hi_u32
bit12_reserved : 12;
hi_u32
bit_h_enable : 1;
hi_u32
bit_v_enable : 1;
} bits;
hi_u32
bytes;
} cfg;
hi_u32
vs_time;
hi_u32
hs_time;
hi_u32
vs_cyc;
hi_u32
hs_cyc;
hi_u32
hs_dly_cyc;
hi_u32
slave_mode_time;
} hi_isp_slave_sns_sync;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| bit16\_reserved | 保留字段。 |
| bit\_h\_inv | XHS极性配置。 0：正极； 1 ：负极。 |
| bit\_v\_inv | XVS极性配置。 0：正极； 1 ：负极。 |
| bit12\_reserved | 保留字段。 |
| bit\_h\_enable | XHS输出使能。 |
| bit\_v\_enable | XVS输出使能。 |
| vs\_time | XVS信号周期，单位：sensor输入时钟周期。 |
| hs\_time | XHS信号周期，单位：sensor输入时钟周期。 |
| vs\_cyc | XVS有效电平宽度，单位：sensor输入时钟周期。 |
| hs\_cyc | XHS有效电平宽度，单位：sensor输入时钟周期。 |
| hs\_dly\_cyc | XHS脉冲输出相对XVS脉冲的延迟周期配置，单位：sensor输入时钟周期。 |
| slave\_mode\_time | Sensor从模式时序配置选择寄存器： 0：选择SENSOR0 timing配置； 1：选择SENSOR1 timing配置； 2：选择SENSOR2 timing配置； 3：选择SENSOR3 timing配置。 |


#### 注意事项

如图 2-4~图 2-6 所示，说明了同步信号发生模块配置参数的含义。

图2-4 同步信号配置时序图


图2-5 同步信号极性翻转


图2-6 同步信号使能
