Files

copied

Scanning the repository...

Last update 8 months 3 weeks by Masakatsu Honda
FilesCubeMXpassion-v2-1AppIncperipheral
..
adc.hpp
eeprom.hpp
encodermode.hpp
gpio.hpp
interrupt.hpp
pwm.hpp
spi.hpp
wait.hpp
adc.hpp
#ifndef _ADC_HPP_ #define _ADC_HPP_ #include <iostream> #include <stdint.h> #include "config.h" #include "stdout.h" namespace peripheral{ class ADC { private: ADC_HandleTypeDef* hadc_; uint16_t buff_[10] ={0}; uint32_t channels_ = 5; public: ADC(ADC_HandleTypeDef* hadc); void ReadVal(); uint16_t * get_val_ptr(); ~ADC() = default; }; } #endif /* _ADC_HPP_ */
Report a bug