|
/******************************************************************************
|
* Copyright (C) 2014-2015 HangZhou SiZhu Co.,LTD.
|
*
|
*-----------------------------------------------------------------------------
|
* File: AD421.h
|
* Description: head file of AD421.c used to output 3.5-20mA current
|
* Author: Lishoujian (867693272@qq.com)
|
* Date: Jan 8, 2015
|
*****************************************************************************/
|
|
/* ----------------------- Platform includes --------------------------------*/
|
|
|
#ifndef __AD421_H
|
#define __AD421_H
|
#include "sys.h"
|
|
#define AD421_latch PDout(12)//latch data input
|
#define AD421_clk PDout(11)//clk
|
#define AD421_data PDout(10)//data in
|
|
//#define AD421_EN PDout(0)//data in
|
|
|
void AD421_init(void);
|
void AD421_output(float ma);//ma:3.5 to 24 ;step current data = 0.000244ma
|
#endif
|