TLV5618芯片驱动程序

/**
  ******************************************************************************
  * @file    T_TLV5618.h
  * @author  LuJ
  * @version V3.5.0
  * @date    2015-03-31
  * @brief   DAC头文件管理
  ******************************************************************************
  * (C) Copyright Vango Technoglogy, Inc. 2015
  ******************************************************************************
  */
#ifndef __T_TLV5618_H
#define __T_TLV5618_H  

#include "stm32f10x.h"

#define TLV5618_Channal_A              ((uint8_t)0x01)    //通道A
#define TLV5618_Channal_B              ((uint8_t)0x02)    //通道B
#define TLV5618_Channal_AB             ((uint8_t)0x03)    //通道A&B

#define TLV5618_Slow_mode              ((uint8_t)0x01)    //慢速模式
#define TLV5618_Fast_mode              ((uint8_t)0x02)    //快速模式


void T_TLV5618_Init(void);//初始化
void T_TLV5618_Conver(uint16_t data_A,uint16_t data_B,uint8_t Channal_x,uint8_t SpeedMode);
void T_TLV5618_Test(void);
      
#endif



/**
  ******************************************************************************
  * @file    T_TLV5618.c
  * @author  LuJ
  * @version V3.5.0
  * @date    2015-03-31
  * @brief   TLV5618电源DAC 驱动
  ******************************************************************************
  * (C) Copyright Vango Technoglogy, Inc. 2015
  ******************************************************************************
  */
#include "stm32f10x_spi.h"
#include "T_TLV5618.h"
#include "V_MC74HC595.h"
#include "st_lib.h"

/**
  * 函数功能:TLV5618可调电源DAC初始化,主要初始化STM32的SPI1
  * 输入参数:无
  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值