i2c.h.svn-base

来自「SDP文件解析代码」· SVN-BASE 代码 · 共 43 行

SVN-BASE
43
字号
/* *       i2c for frv, cmmb * ===================================================================================== *        Version:  1.0 *        Created:  2008年01月25日 11时51分30秒 CST *       Compiler:  gcc *         Author:  kf701 (linux), kf701.ye AT gmail.com *        Company:  CodeRepertory *      CopyRight:  Copyright (c) 2008 kf701 *        SVNinfo:  $Id$ * ===================================================================================== */#ifndef  I2C_INC#define  I2C_INC#include <stdio.h> #include <stdlib.h>#include <string.h>#include <stdint.h>#include <stdbool.h>#include <unistd.h>typedef struct{	uint32_t port;	int32_t value;} i2c_t;uint8_t read_i2c(int port);void write_i2c(int port, int value);void enable_cmmb_device(void);void disable_cmmb_device(void);void cmmbip_change(uint32_t addr_type, char *ip, uint16_t port);#define CMMB_CHANGE_FB 0xc0046315#define FB_FPS_25     3     #define FB_FPS_15     4void cmmb_set_fb_fps();void cmmb_restore_fb_fps();#endif   /* ----- #ifndef I2C_INC  ----- */

⌨️ 快捷键说明

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