STM32LIB
wo_t.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 struct wo_t
7 {
8  static void write(
9  volatile unsigned * device,
10  unsigned offset,
11  unsigned mask,
12  unsigned value
13  )
14  { *device = ((value << offset) & mask); }
15 
16  static void set(
17  volatile unsigned * device,
18  unsigned mask
19  )
20  { *device = mask; }
21 };
static void set(volatile unsigned *device, unsigned mask)
Definition: wo_t.hpp:16
static void write(volatile unsigned *device, unsigned offset, unsigned mask, unsigned value)
Definition: wo_t.hpp:8
Definition: wo_t.hpp:6