lib_dac.h

来自「ARM入门的好帮手.包含了从简单到相对较复杂的程序.」· C头文件 代码 · 共 41 行

H
41
字号
//*----------------------------------------------------------------------------
//*         ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : lib_dac.h
//* Object              : Digital to Analog Converter Library Function
//*                       Prototyping File.
//*
//* 1.0 25/08/00  PF    : Creation
//*----------------------------------------------------------------------------

#ifndef lib_dac_h
#define lib_dac_h

#include    "periph/stdc/std_c.h"
#include    "periph/dac/dac.h"
#include    "periph/power_saving/lib_power_save.h"

/*-------------------------------------*/
/* DAC Descriptor Structure Definition */
/*-------------------------------------*/
typedef struct
{
    StructDAC           *dac_base ;
    u_char              periph_id ;
} DacDesc ;

/* Function Prototyping */
extern  void at91_dac_open ( const DacDesc *dac_desc, u_int mode ) ;
extern  void at91_dac_close ( const DacDesc *dac_desc ) ;
extern  void at91_dac_trig_cmd ( const DacDesc *dac_desc, u_int cmd ) ;
extern  void at91_dac_set_mode ( const DacDesc *dac_desc, u_int mode ) ;
extern  void at91_dac_write ( const DacDesc *dac_desc, u_short *data ) ;
extern  u_int at91_dac_get_status ( const DacDesc *dac_desc ) ;

#endif  /* lib_dac_h */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?