📄 drvsi2c.c
字号:
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2005-2007 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// (¨MStar Confidential Information〃) by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
// File Name: drvSI2C.c
// Description: For Slave I2C functions.
//
// Registers read and write command list:
// DATA WRITE : START + 0x6E + 0x10 + addrh + addrl + data + STOP
// DATA READ : START + 0x6E + 0x10 + addrh + addrl + START + 0x6F + data +STOP
//
////////////////////////////////////////////////////////////////////////////////
#define _DRVSI2C_C_
#include "Analog_Reg.h"
#include "hwreg.h"
#include "drvglobal.h"
#include "drvSI2C.h"
#include "drvSI2C_INT.h"
#include <intrins.h>
#if ENABLE_SI2C
#define SI2C_MSG(x) x
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
void MDrv_SI2C_EXECUTE_BUF(void)
{
//U8 i;2008/7/29 09:57
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -