外触发输入引脚工作模式 更多... | |
| enum | KSJ_GPIOOUT_MODE { KSJ_GPIOOUT_FLASH, KSJ_GPIOOUT_NORMAL } |
GPIO模式. 更多... | |
函数 | |
| KSJ_API int __stdcall | KSJ_GpioSetDirection (int nIndex, unsigned char btDirection) |
| KSJ_GpioSetDirection. | |
| KSJ_API int __stdcall | KSJ_GpioGetDirection (int nIndex, unsigned char *pbtDirection) |
| KSJ_GpioGetDirection. | |
| KSJ_API int __stdcall | KSJ_GpioSetStatus (int nIndex, unsigned char btGpioStatus) |
| KSJ_GpioSetStatus. | |
| KSJ_API int __stdcall | KSJ_GpioGetStatus (int nIndex, unsigned char *pbtGpioStatus) |
| KSJ_GpioGetStatus. | |
| KSJ_API int __stdcall | KSJ_FlashControlSet (int nIndex, bool bEnable, bool bInvert, int nMode) |
| KSJ_FlashControlSet. | |
| KSJ_API int __stdcall | KSJ_FlashControlGet (int nIndex, bool *pbEnable, bool *pbInvert, int *pnMode) |
| KSJ_FlashControlGet. | |
| KSJ_API int __stdcall | KSJ_FlashEnableSet (int nIndex, bool bEnable) |
| KSJ_FlashEnableSet. | |
| KSJ_API int __stdcall | KSJ_FlashEnableGet (int nIndex, bool *pbEnable) |
| KSJ_FlashEnableGet. | |
| KSJ_API int __stdcall | KSJ_FlashInvertSet (int nIndex, bool bInvert) |
| KSJ_FlashInvertSet. | |
| KSJ_API int __stdcall | KSJ_FlashInvertGet (int nIndex, bool *pbInvert) |
| KSJ_FlashInvertGet. | |
| KSJ_API int __stdcall | KSJ_GpioInModeSet (int nIndex, KSJ_GPIOIN_MODE GpioInMode) |
| KSJ_GpioInModeSet. | |
| KSJ_API int __stdcall | KSJ_GpioInModeGet (int nIndex, KSJ_GPIOIN_MODE *pGpioInMode) |
| KSJ_GpioInModeGet. | |
| KSJ_API int __stdcall | KSJ_GpioInStatusGet (int nIndex, unsigned char *pbtValue) |
| KSJ_GpioInStatusGet. | |
| KSJ_API int __stdcall | KSJ_GpioOutModeSet (int nIndex, KSJ_GPIOOUT_MODE GpioOutMode) |
| KSJ_GpioOutModeSet. | |
| KSJ_API int __stdcall | KSJ_GpioOutModeGet (int nIndex, KSJ_GPIOOUT_MODE *pGpioOutMode) |
| KSJ_GpioOutModeGet. | |
| KSJ_API int __stdcall | KSJ_GpioOutStatusSet (int nIndex, unsigned char btValue) |
| KSJ_GpioOutStatusSet. | |
| KSJ_API int __stdcall | KSJ_GpioFilterSet (int nIndex, unsigned short wFilterTimeUs) |
| KSJ_GpioFilterSet. | |
| KSJ_API int __stdcall | KSJ_GpioFilterGet (int nIndex, unsigned short *pwFilterTimeUs) |
| KSJ_GpioFilterGet. | |
| enum KSJ_GPIOIN_MODE |
| enum KSJ_GPIOOUT_MODE |
| KSJ_API int __stdcall KSJ_GpioSetDirection | ( | int | nIndex, | |
| unsigned char | btDirection | |||
| ) |
KSJ_GpioSetDirection.
-----------------------------------------------------------------------------
设置IO为输入或输出
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| btDirection | [in] btDirection按位寻址,BIT0对应GPIO0, BIT1对应GPIO1, BIT2对应GPIO2, BIT3对应GPIO3(=1表示此GPIO输出,=0表示此GPIO输入) |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioGetDirection | ( | int | nIndex, | |
| unsigned char * | pbtDirection | |||
| ) |
KSJ_GpioGetDirection.
-----------------------------------------------------------------------------
设置IO为输入或输出
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pbtDirection | [out] 返回GPIO引脚的输入输出状态,pbtDirection按位寻址,BIT0对应GPIO0, BIT1对应GPIO1, BIT2对应GPIO2, BIT3对应GPIO3(=1表示此GPIO输出,=0表示此GPIO输入) |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioSetStatus | ( | int | nIndex, | |
| unsigned char | btGpioStatus | |||
| ) |
KSJ_GpioSetStatus.
-----------------------------------------------------------------------------
对于输出引脚设置输出状态
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| btGpioStatus | [in] 控制IO引脚输出状态,按位寻址,只有btDirection相应位设置为1的引脚才能通过此函数控制引脚输出。btGpioStatus位寻址,BIT0对应GPIO0, BIT1对应GPIO1, BIT2对应GPIO2, BIT3对应GPIO3(=1表示此GPIO输出TTL高电平,=0表示此GPIO输出TTL低电平) |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioGetStatus | ( | int | nIndex, | |
| unsigned char * | pbtGpioStatus | |||
| ) |
KSJ_GpioGetStatus.
-----------------------------------------------------------------------------
读取输入IO引脚状态
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pbtGpioStatus | [out] 读取IO引脚输入状态,只有通过KSJ_GpioSetDirection 函数设置btDirection相应位设置为0的引脚才能通过此函数读取引脚输入状态,*pbtGpioStatus位寻址,BIT0对应GPIO0, BIT1对应GPIO1, BIT2对应GPIO2, BIT3对应GPIO3(=1表示此GPIO输出TTL高电平,=0表示此GPIO输出TTL低电平) |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_FlashControlSet | ( | int | nIndex, | |
| bool | bEnable, | |||
| bool | bInvert, | |||
| int | nMode | |||
| ) |
KSJ_FlashControlSet.
-----------------------------------------------------------------------------
设置闪光灯
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| bEnable | [in] 是否使能闪光灯,true为使能,false为关闭 | |
| bInvert | [in] 是否翻转闪光灯信号 | |
| nMode | [in] 闪光灯模式,暂不支持 |
| KSJ_API int __stdcall KSJ_FlashControlGet | ( | int | nIndex, | |
| bool * | pbEnable, | |||
| bool * | pbInvert, | |||
| int * | pnMode | |||
| ) |
KSJ_FlashControlGet.
-----------------------------------------------------------------------------
获取闪光灯状态
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pbEnable | [out] 返回是否使能闪光灯,true为使能,false为关闭 | |
| pbInvert | [out] 返回是否闪光灯信号翻转 | |
| pnMode | [out] 返回闪光灯模式,暂不支持 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_FlashEnableSet | ( | int | nIndex, | |
| bool | bEnable | |||
| ) |
KSJ_FlashEnableSet.
-----------------------------------------------------------------------------
设置闪光灯使能
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| bEnable | [in] 是否使能闪光灯,true为使能,false为关闭 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_FlashEnableGet | ( | int | nIndex, | |
| bool * | pbEnable | |||
| ) |
KSJ_FlashEnableGet.
-----------------------------------------------------------------------------
获取闪光灯使能状态
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pbEnable | [out] 返回是否使能闪光灯,true为使能,false为关闭 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_FlashInvertSet | ( | int | nIndex, | |
| bool | bInvert | |||
| ) |
KSJ_FlashInvertSet.
-----------------------------------------------------------------------------
设置闪光灯信号翻转
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| bInvert | [in] 是否翻转闪光灯信号 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_FlashInvertGet | ( | int | nIndex, | |
| bool * | pbInvert | |||
| ) |
KSJ_FlashInvertGet.
-----------------------------------------------------------------------------
获取闪光灯信号翻转
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pbInvert | [out] 返回是否闪光灯信号翻转 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioInModeSet | ( | int | nIndex, | |
| KSJ_GPIOIN_MODE | GpioInMode | |||
| ) |
KSJ_GpioInModeSet.
-----------------------------------------------------------------------------
设置外触发输入引脚的工作模式
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| GpioInMode | [in] 设置外触发引脚的工作模式 |
| KSJ_API int __stdcall KSJ_GpioInModeGet | ( | int | nIndex, | |
| KSJ_GPIOIN_MODE * | pGpioInMode | |||
| ) |
KSJ_GpioInModeGet.
-----------------------------------------------------------------------------
读取外触发输入引脚的工作模式
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pGpioInMode | [out] 外触发引脚的当前工作模式 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioInStatusGet | ( | int | nIndex, | |
| unsigned char * | pbtValue | |||
| ) |
KSJ_GpioInStatusGet.
-----------------------------------------------------------------------------
当外触发输入引脚作为KSJ_GPIOIN_NORMAL时,可以通过此函数进行读取输入状态
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pbtValue | [out] 外触发引脚的当前输入状态;当外触发输入引脚作为普通IO时,可以通过此函数进行读取,BIT0为该引脚电平状态。1为高电平,0为低电平。注意:只有在设置为KSJ_GPIOIN_NORMAL模式下才可以读取。 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioOutModeSet | ( | int | nIndex, | |
| KSJ_GPIOOUT_MODE | GpioOutMode | |||
| ) |
KSJ_GpioOutModeSet.
-----------------------------------------------------------------------------
设置闪光灯输出引脚的工作模式
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| GpioOutMode | [in] 设置闪光灯输出引脚的工作模式 |
| KSJ_API int __stdcall KSJ_GpioOutModeGet | ( | int | nIndex, | |
| KSJ_GPIOOUT_MODE * | pGpioOutMode | |||
| ) |
KSJ_GpioOutModeGet.
-----------------------------------------------------------------------------
读取闪光灯输出引脚的工作模式
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pGpioOutMode | [out] 闪光灯输出引脚的当前工作模式 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioOutStatusSet | ( | int | nIndex, | |
| unsigned char | btValue | |||
| ) |
KSJ_GpioOutStatusSet.
-----------------------------------------------------------------------------
当闪光灯输出引脚作为KSJ_GPIOOUT_NORMAL时,可以通过此函数控制闪光灯引脚状态
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| btValue | [in] 控制闪光灯输出引脚的输入状态;当闪光灯输出引脚作为普通IO时,可以通过此函数进行输出控制,BIT1为该引脚电平状态。1为高电平,0为低电平。注意:只有在设置为KSJ_GPIOOUT_NORMAL模式下才可以控制。 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioFilterSet | ( | int | nIndex, | |
| unsigned short | wFilterTimeUs | |||
| ) |
KSJ_GpioFilterSet.
-----------------------------------------------------------------------------
设置外触发输入的滤波时长(微秒)
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| wFilterTimeUs | [in] 设置滤波时长,当为0时,默认200ns滤波 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_GpioFilterGet | ( | int | nIndex, | |
| unsigned short * | pwFilterTimeUs | |||
| ) |
KSJ_GpioFilterGet.
-----------------------------------------------------------------------------
读取外触发输入的滤波时长
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pwFilterTimeUs | [out] 返回滤波时长,当为0时,默认200ns滤波 |
-----------------------------------------------------------------------------