⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hw_gpio_api.h

📁 1、基于韩国at2041芯片开发的Linux环境的DVR代码。 2、以原来代码进行了修改。 3、主要修改网络通讯出现异常问题处理 4、硬盘覆盖录像不起作用
💻 H
字号:
/* set tabstop=4 */
/********************************************************************************
 *                                                                              *
 * Copyright(C) 2004  Penta-Micro                                               *
 *                                                                              *
 * ALL RIGHT RESERVED                                                           *
 *                                                                              *
 * This software is the property of Penta-Micro and is furnished under          *
 * license by Penta-Micro. This software may be used only in accordance         *	
 * with the terms of said license. This copyright notice may not be             *
 * removed, modified or obliterated without the prior written permission        *
 * of Penta-Micro.                                                              *
 *                                                                              *
 * This software may not be copyed, transmitted, provided to or otherwise       *
 * made available to any other person, company, corporation	or other entity     *
 * except as specified in the terms of said license.                            *
 *                                                                              *
 * No right, title, ownership or other interest in the software is hereby       *
 * granted or transferred.                                                      *
 *                                                                              *
 * The information contained herein is subject to change without notice and     *
 * should not be construed as a commitment by Penta-Micro.                      *
 *                                                                              *
 ********************************************************************************
 
  MODULE NAME:  HW_GPIO_API.H
  
  REVISION HISTORY:
  
  Date       Ver Name                  Description
  ---------- --- --------------------- -----------------------------------------
 12/13/2004  1.0 jigwan Kang(xchannel)  Created 
 ...............................................................................
 
  DESCRIPTION:
  
  This Module contains definition for PPC405 GPIO function.
  
 ...............................................................................
*/    
 
#ifndef _HW_GPIO_API_H
#define _HW_GPIO_API_H


/** ************************************************************************* ** 
 ** includes
 ** ************************************************************************* **/
#include "typedef.h"

 
/** ************************************************************************* ** 
 ** defines
 ** ************************************************************************* **/
#define SPEECH_MASK		0xe0000000    /* <-- 3bit access */
#define SPEECH_CH1			0x00000000     
#define SPEECH_CH2			0x80000000
#define SPEECH_CH3			0x40000000
#define SPEECH_CH4			0xc0000000
#define SPEECH_EN			0x20000000 

#define SPOT_MASK			0x00000030    /* <-- 2bit access */
#define SPOT_CH1				0x00000000
#define SPOT_CH2				0x00000020
#define SPOT_CH3				0x00000010
#define SPOT_CH4				0x00000030
/** ************************************************************************* ** 
 ** typedefs
 ** ************************************************************************* **/

  
/** ************************************************************************* ** 
 ** function prototypes
 ** ************************************************************************* **/
RETURN	   ppc405_gpio_open(void);
void	               ppc405_gpio_close(void);
VIDEO_MODE get_video_mode(void);
RETURN	   set_live_audio_ch(UNS32 arg);
RETURN	   set_spot_out_ch(UNS32 arg);
RETURN	   set_sensor_out_ch(UNS32 arg, BOOL normal_open);
RETURN	   ppc405_gpio_in(UNS32 *arg);
RETURN	   ppc405_gpio_ioctl(UNS32 cmd, UNS32 *arg);
void               ppc405_gpio_at2041_reset(void);
#endif /* _HW_GPIO_API_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -