bsp_Digit类 参考
bsp_Digit
一个面向数码管的类,使用级联的HC595
#include <bsp_Digit.h>
Public 成员函数
bsp_Digit (GPIO_TypeDef *GPIOx_MOSIO, uint16_t GPIO_Pin_MOSIO, GPIO_TypeDef *GPIOx_S_CLK, uint16_t GPIO_Pin_S_CLK, GPIO_TypeDef *GPIOx_R_CLK, uint16_t GPIO_Pin_R_CLK, bool Polarity)
void DatCom (u8 SendVal, u8 cha)
在某位显示一个数字
void num (u16 num)
显示一个四位数据
void dop (u8 cha)
显示一个小数点
void numdop (u16 num, u8 cha)
显示数据与一个像素点
Public 属性
u16 division
分频系数,越大越慢
Protected 成员函数
void dat (u8 SendVal)
void com (void)
Private 属性
bool Polarity
共阴或共阳
GPIO_TypeDef * GPIOx_MOSIO
uint16_t GPIO_Pin_MOSIO
GPIO_TypeDef * GPIOx_S_CLK
uint16_t GPIO_Pin_S_CLK
GPIO_TypeDef * GPIOx_R_CLK
uint16_t GPIO_Pin_R_CLK
详细描述
一个面向数码管的类,使用级联的HC595
在文件 bsp_Digit.h 第 67 行定义.
构造及析构函数说明
bsp_Digit()
bsp_Digitbsp_Digit
bsp_Digitbsp_Digit
bsp_Digit::bsp_Digit (GPIO_TypeDef * GPIOx_MOSIO, uint16_t GPIO_Pin_MOSIO, GPIO_TypeDef * GPIOx_S_CLK, uint16_t GPIO_Pin_S_CLK, GPIO_TypeDef * GPIOx_R_CLK, uint16_t GPIO_Pin_R_CLK, bool Polarity)
在文件 bsp_Digit.cpp 第 77 行定义.
成员函数说明
com()
combsp_Digit
bsp_Digitcom
void bsp_Digit::com (void )[protected]
在文件 bsp_Digit.cpp 第 47 行定义.
这是这个函数的调用关系图:
dat()
datbsp_Digit
bsp_Digitdat
void bsp_Digit::dat (u8 SendVal)[protected]
在文件 bsp_Digit.cpp 第 41 行定义.
这是这个函数的调用关系图:
DatCom()
DatCombsp_Digit
bsp_DigitDatCom
void bsp_Digit::DatCom (u8 SendVal, u8 cha)
在某位显示一个数字
在文件 bsp_Digit.cpp 第 51 行定义.
函数调用图:
这是这个函数的调用关系图:
dop()
dopbsp_Digit
bsp_Digitdop
void bsp_Digit::dop (u8 cha)
显示一个小数点
在文件 bsp_Digit.cpp 第 64 行定义.
函数调用图:
这是这个函数的调用关系图:
num()
numbsp_Digit
bsp_Digitnum
void bsp_Digit::num (u16 num)
显示一个四位数据
在文件 bsp_Digit.cpp 第 58 行定义.
函数调用图:
这是这个函数的调用关系图:
numdop()
numdopbsp_Digit
bsp_Digitnumdop
void bsp_Digit::numdop (u16 num, u8 cha)
显示数据与一个像素点
在文件 bsp_Digit.cpp 第 71 行定义.
函数调用图:
类成员变量说明
division
divisionbsp_Digit
bsp_Digitdivision
u16 bsp_Digit::division
分频系数,越大越慢
在文件 bsp_Digit.h 第 78 行定义.
GPIO_Pin_MOSIO
GPIO_Pin_MOSIObsp_Digit
bsp_DigitGPIO_Pin_MOSIO
uint16_t bsp_Digit::GPIO_Pin_MOSIO[private]
在文件 bsp_Digit.h 第 87 行定义.
GPIO_Pin_R_CLK
GPIO_Pin_R_CLKbsp_Digit
bsp_DigitGPIO_Pin_R_CLK
uint16_t bsp_Digit::GPIO_Pin_R_CLK[private]
在文件 bsp_Digit.h 第 91 行定义.
GPIO_Pin_S_CLK
GPIO_Pin_S_CLKbsp_Digit
bsp_DigitGPIO_Pin_S_CLK
uint16_t bsp_Digit::GPIO_Pin_S_CLK[private]
在文件 bsp_Digit.h 第 89 行定义.
GPIOx_MOSIO
GPIOx_MOSIObsp_Digit
bsp_DigitGPIOx_MOSIO
GPIO_TypeDef* bsp_Digit::GPIOx_MOSIO[private]
在文件 bsp_Digit.h 第 86 行定义.
GPIOx_R_CLK
GPIOx_R_CLKbsp_Digit
bsp_DigitGPIOx_R_CLK
GPIO_TypeDef* bsp_Digit::GPIOx_R_CLK[private]
在文件 bsp_Digit.h 第 90 行定义.
GPIOx_S_CLK
GPIOx_S_CLKbsp_Digit
bsp_DigitGPIOx_S_CLK
GPIO_TypeDef* bsp_Digit::GPIOx_S_CLK[private]
在文件 bsp_Digit.h 第 88 行定义.
Polarity
Polaritybsp_Digit
bsp_DigitPolarity
bool bsp_Digit::Polarity[private]
共阴或共阳
在文件 bsp_Digit.h 第 85 行定义.
该类的文档由以下文件生成:
D:/gitt/MicrochipFor32/bsp_Device/bsp_Digit.hD:/gitt/MicrochipFor32/bsp_Device/bsp_Digit.cpp