STM32LIB
ro_t.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 struct ro_t
7 {
8  static unsigned read(
9  volatile unsigned * device,
10  unsigned offset,
11  unsigned mask
12  )
13  { return (*device & mask) >> offset; }
14 };
Definition: ro_t.hpp:6
static unsigned read(volatile unsigned *device, unsigned offset, unsigned mask)
Definition: ro_t.hpp:8