summaryrefslogtreecommitdiff
path: root/adc/stm32_opamp.h
blob: 928bd0c4dd0ce87d58fa9c8b4fe409835c8f8a33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <mmio/mmio.h>

struct STM32_OPAMP_reg_t {
	volatile uint32_t CSR1;
	volatile uint32_t CSR2;
	volatile uint32_t CSR3;
	volatile uint32_t CSR4;
	volatile uint32_t CSR5;
	volatile uint32_t CSR6;
	volatile uint32_t TCMR1;
	volatile uint32_t TCMR2;
	volatile uint32_t TCMR3;
	volatile uint32_t TCMR4;
	volatile uint32_t TCMR5;
	volatile uint32_t TCMR6;
};

class STM32_OPAMP_t : public mmio_ptr<STM32_OPAMP_reg_t> {
    public:
        using mmio_ptr<STM32_OPAMP_reg_t>::ptr;
};