Files
Scanning the repository...
Last update 8 months 3 weeks
by Masakatsu Honda
| FilesCubeMXpassion-v2-1AppSrcperipheral | |
|---|---|
| .. | |
| adc.cpp | |
| eeprom.cpp | |
| encodermode.cpp | |
| gpio.cpp | |
| interrupt.cpp | |
| pwm.cpp | |
| spi.cpp | |
| wait.cpp |
adc.cpp#include "adc.hpp" namespace peripheral{ ADC::ADC(ADC_HandleTypeDef* hadc) :hadc_(hadc){} void ADC::ReadVal(){//,uint32_t rank) HAL_ADC_Start_DMA(hadc_,(uint32_t *)buff_,channels_); } uint16_t* ADC::get_val_ptr(){ return buff_; } }