📄 tlv2544.h
字号:
/*---------------------------------------------------------
--Filename: TLV2544.H
--Describe: TLV2544 functions
--Author: Copyright (c) 2007 DC. By Delphifx
--Data: 2007-12-30
------------------------All rights reserved.--------------*/
#ifndef _H_TLV2544_
#define _H_TLV2544_
#include "config.h"
#define ADUsedPort PORTB
#define ADUsedInPort PINB
#define AD_CS PB0
#define AD_DOUT PB3
#define AD_DIN PB2
#define AD_CLK PB1
#define SET_TLV2544_CSTART PORTF|=BIT(PF7)
#define SETB_TLV2544_CS ADUsedPort|=BIT(AD_CS)
#define CLRB_TLV2544_CS ADUsedPort&=~BIT(AD_CS)
#define SETB_TLV2544_DATAIN ADUsedPort|=BIT(AD_DIN)
#define CLRB_TLV2544_DATAIN ADUsedPort&=~BIT(AD_DIN)
#define SETB_TLV2544_DATAOUT ADUsedPort|=BIT(AD_DOUT)
#define CLRB_TLV2544_DATAOUT ADUsedPort&=~BIT(AD_DOUT)
#define SETB_TLV2544_DATACLK ADUsedPort|=BIT(AD_CLK)
#define CLRB_TLV2544_DATACLK ADUsedPort&=~BIT(AD_CLK)
#define GETB_TLV2544_DATAIN ADUsedInPort & BIT(AD_DOUT)
void TLV2544_Init(void);
void TLV2544_wb ( uint16 C_dat );
uint16 TLV2544(uint8 port);
uint16 TLV2544_Once(uint8 ch);
unsigned int Filter(uint8 path,uint16 N);
unsigned int FilterMv(uint8 path,uint16 RefVD,uint16 N);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -