Skip to content

Instantly share code, notes, and snippets.

@davidjb
Last active October 29, 2017 03:31
Show Gist options
  • Save davidjb/f0529d8d64ca5d873fe700577bc43dac to your computer and use it in GitHub Desktop.
Save davidjb/f0529d8d64ca5d873fe700577bc43dac to your computer and use it in GitHub Desktop.
SNX IR CTRL Documentation
IR_CTRL
SN98601 IO port SN98660 IO port SN98661 IO port Design function Remarks
MS1_IO2 MS1_IO2 MS1_IO2 IR CUT Drive Control Output A
AUD1_IO3 AUD_IO0 AUD_IO0 Infrared Lamp Control
AUD1_IO4 AUD_IO1 AUD_IO1 IR CUT Drive Control Output B
MS1_IO5 AUD_IO2 AUD_IO2 Day / Night mode Detection Port
MS1_IO6 AUD_IO3 AUD_IO3 Sensor Power Control H: Enable L: Disable
MS1_IO7 AUD_IO4 AUD_IO4 Speaker SNAP01 Control H: Enable L: Disable
MS1_IO8 MS1_IO3 MS1_IO3 SF_CSn
MS1_IO9 MS1_IO4 MS1_IO4 SF_DO
MS1_IO5 MS1_IO5 MS1_IO5 SF_DI
  • You can modify the IQ pin by modifying the ir_ctrl.c macro
Usage
  • Instructions: 1. Set to day mode: ./snx_ir_ctl 0 2. Set to night mode: ./snx_ir_ctl 1 3. Check the light board GPIO and set the IR day / night mode ./snx_ir_ctl
  • Description: Check the light board GPIO, if there is a change to switch to the corresponding mode (day / night)
IR_CTRL
SN98601 IO口 SN98660 IO口 SN98661 IO口 设计功能 备注
MS1_IO2 MS1_IO2 MS1_IO2 IR CUT 驱动控制输出A
MS1_IO3 AUD_IO0 AUD_IO0 预留灯板红外灯控制
MS1_IO4 AUD_IO1 AUD_IO1 IR CUT 驱动控制输出B  
MS1_IO5 AUD_IO2 AUD_IO2 Day/Night mode 检测口  
MS1_IO6 AUD_IO3 AUD_IO3 Sensor 电源控制 H:Enable L:Disable
MS1_IO7 AUD_IO4 AUD_IO4 Speaker SNAP01 控制 H:Enable L:Disable
MS1_IO8 MS1_IO3 MS1_IO3 SF_CSn  
MS1_IO9 MS1_IO4 MS1_IO4 SF_DO  
MS1_IO10 MS1_IO5 MS1_IO5 SF_DI  
  • 可以透過修改ir_ctrl.c macro進行IQ腳位修改
Usage
  • 使用方法: 1. 设置白天模式: ./snx_ir_ctl 0 2. 设置夜间模式: ./snx_ir_ctl 1 3. 检测灯板GPIO,设置IR day/night 模式 ./snx_ir_ctl
  • 说明:检测灯板GPIO,如果有变化切换到相应的模式(day/night)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment