forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

周巍
2024-04-11 91ef77c00ed797b1048c5187f416e351e646a009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
/******************************************************************************
 * 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