-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcomp.hpp
74 lines (64 loc) · 2.21 KB
/
comp.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#pragma once
//=====================================================================//
/*! @file
@brief R8C/M110AN, R8C/M120AN グループ・コンパレーターレジスタ定義
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2015, 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/R8C/blob/master/LICENSE
*/
//=====================================================================//
#include "common/io_utils.hpp"
namespace device {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief コンパレーター制御レジスタ WCMPR
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
struct wcmpr_t : public rw8_t<0x0180> {
typedef rw8_t<0x0180> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B0> WCB1M0;
bit_rw_t<io_, bitpos::B3> WCB1OUT;
bit_rw_t<io_, bitpos::B4> WCB3M0;
bit_rw_t<io_, bitpos::B7> WCB3OUT;
};
static wcmpr_t WCMPR;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief コンパレーター B1 割り込み制御レジスタ WCB1INTR
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
struct wcb1intr_t : public rw8_t<0x0181> {
typedef rw8_t<0x0181> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B0, 2> WCB1FL;
bits_rw_t<io_, bitpos::B4, 2> WCB1S;
bit_rw_t <io_, bitpos::B6> WCB1INTEN;
bit_rw_t <io_, bitpos::B7> WCB1F;
};
static wcb1intr_t WCB1INTR;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief コンパレーター B3 割り込み制御レジスタ WCB3INTR
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
struct wcb3intr_t : public rw8_t<0x0182> {
typedef rw8_t<0x0182> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B0, 2> WCB3FL;
bits_rw_t<io_, bitpos::B4, 2> WCB3S;
bit_rw_t <io_, bitpos::B6> WCB3INTEN;
bit_rw_t <io_, bitpos::B7> WCB3F;
};
static wcb3intr_t WCB3INTR;
}