Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3_cpp_extensions.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cm3cpp_adc_dma.h')
-rw-r--r--cm3cpp_adc_dma.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/cm3cpp_adc_dma.h b/cm3cpp_adc_dma.h
index 6bb6ee1..b948ab2 100644
--- a/cm3cpp_adc_dma.h
+++ b/cm3cpp_adc_dma.h
@@ -1,12 +1,12 @@
#ifndef CM3CPP_ADC_DMA_H_
#define CM3CPP_ADC_DMA_H_
-#include <libopencm3/stm32/dma.h>
#include <cm3cpp_config.h>
#include <cstring>
+#include <libopencm3/stm32/dma.h>
-#include "private/assert.h"
#include "cm3cpp_adc.h"
+#include "private/assert.h"
namespace cm3cpp {
@@ -14,34 +14,34 @@ namespace adc {
class AdcDma
{
-public:
- struct DmaConf
- {
- uint32_t number;
- uint32_t stream;
- uint32_t channel;
- };
+ public:
+ struct DmaConf
+ {
+ uint32_t number;
+ uint32_t stream;
+ uint32_t channel;
+ };
- struct AdcConf
- {
- Adc::Number number;
- Adc::Channel *channels;
- uint8_t channels_count;
- };
+ struct AdcConf
+ {
+ Adc::Number number;
+ Adc::Channel* channels;
+ uint8_t channels_count;
+ };
- AdcDma(DmaConf dma, AdcConf adc, bool is_temp_sensor);
+ AdcDma(DmaConf dma, AdcConf adc, bool is_temp_sensor);
- CM3CPP_EXPLISIT_DESTRUCTOR(AdcDma)
+ CM3CPP_EXPLISIT_DESTRUCTOR(AdcDma)
uint16_t get_value(uint8_t index);
-private:
- Adc *_adc;
- uint16_t *_data;
+ private:
+ Adc* _adc;
+ uint16_t* _data;
};
-} // namespace adc
+} // namespace adc
-} // namespace cm3cpp
+} // namespace cm3cpp
#endif /* CM3CPP_ADC_DMA_H_ */