Familiar functions of TM7707 for all embedded device. More...
#include "TM7707_ATY.h"Go to the source code of this file.
Macros | |
| #define | __TM7707_ATY_C |
Functions | |
| void | TM7707_GPIO_Init (void) |
| void | TM7707_MCLK_Init (void) |
| void | TM7707_WriteByte (uint8_t data_t) |
| Write one byte to TM7707. | |
| uint8_t | TM7707_ReadByte (void) |
| Read one byte from TM7707. | |
| uint32_t | TM7707_ReadData (void) |
| Read data from TM7707 Data Register once. | |
| float | TM7707_VoltageCalc (float refVoltage, uint32_t dataIn) |
| Calculate voltage from 24 bit data. | |
| void | TM7707_Init (void) |
| Init TM7707. | |
| void | TM7707_Test (void) |
| TM7707 test. | |
Familiar functions of TM7707 for all embedded device.
| Project | DEVICE_GENERAL_ATY_LIB |
Definition in file TM7707_ATY.c.
| #define __TM7707_ATY_C |
Definition at line 28 of file TM7707_ATY.c.
| void TM7707_GPIO_Init | ( | void | ) |
Definition at line 33 of file TM7707_ATY.c.
| void TM7707_Init | ( | void | ) |
Init TM7707.
Definition at line 216 of file TM7707_ATY.c.
| void TM7707_MCLK_Init | ( | void | ) |
< 开启FLASH外设时钟
<========================== 时钟初始化配置 =================================== 因要使用的时钟源HCLK小于24M:此处设置FLASH 读等待周期为0 cycle(默认值也为0 cycle)
< 选择内部RCH作为HCLK时钟源;
< HCLK SYSCLK/1
< PCLK 为HCLK/1
< 时钟初始化前,优先设置要使用的时钟源:此处设置RCH为4MHz
< 系统时钟初始化
Definition at line 57 of file TM7707_ATY.c.
| uint8_t TM7707_ReadByte | ( | void | ) |
Read one byte from TM7707.
Definition at line 166 of file TM7707_ATY.c.
| uint32_t TM7707_ReadData | ( | void | ) |
Read data from TM7707 Data Register once.
Definition at line 187 of file TM7707_ATY.c.
| void TM7707_Test | ( | void | ) |
TM7707 test.
Definition at line 286 of file TM7707_ATY.c.
| float TM7707_VoltageCalc | ( | float | refVoltage, |
| uint32_t | dataIn | ||
| ) |
Calculate voltage from 24 bit data.
| refVoltage | reference voltage at TM7707 REF_IN+ pin |
| dataIn | 24 bit data from: uint32_t TM7707_ReadData(void) |
Definition at line 208 of file TM7707_ATY.c.
| void TM7707_WriteByte | ( | uint8_t | data_t | ) |
Write one byte to TM7707.
| data_t | data to write |
Definition at line 137 of file TM7707_ATY.c.