sim_acp.h Source File

yasimavr: sim_acp.h Source File
yasimavr
Loading...
Searching...
No Matches
sim_acp.h
Go to the documentation of this file.
1/*
2 * sim_acp.h
3 *
4 * Copyright 2022-2026 Clement Savergne <csavergne@yahoo.com>
5
6 This file is part of yasim-avr.
7
8 yasim-avr is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 yasim-avr is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with yasim-avr. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22//=======================================================================================
23
24#ifndef __YASIMAVR_ACP_H__
25#define __YASIMAVR_ACP_H__
26
27#include "../core/sim_peripheral.h"
28#include "../core/sim_pin.h"
29
31
32
33//=======================================================================================
34
77
78
80
81#endif //__YASIMAVR_ACP_H__
Generic Analog Comparator definitions.
Definition sim_acp.h:41
SignalId
Definition sim_acp.h:68
@ Signal_Output
Raised when the output state of the comparator has change. The data is the new state.
Definition sim_acp.h:70
@ Signal_DAC
Definition sim_acp.h:73
Channel
Definition sim_acp.h:46
@ Channel_IntRef
Internal reference voltage.
Definition sim_acp.h:52
@ Channel_AcompRef
Internal DAC voltage.
Definition sim_acp.h:50
@ Channel_Pin
External pin analog input.
Definition sim_acp.h:48
#define YASIMAVR_BEGIN_NAMESPACE
Definition sim_globals.h:58
#define YASIMAVR_END_NAMESPACE
Definition sim_globals.h:59
YASIMAVR_BEGIN_NAMESPACE typedef sim_id_t pin_id_t
Definition sim_pin.h:34
Definition sim_acp.h:58
pin_id_t pin
Pin ID used for external pin analog inputs.
Definition sim_acp.h:62
Channel type
Channel type.
Definition sim_acp.h:60
Definition sim_peripheral.h:252