24#ifndef __YASIMAVR_AVR_SPI_H__
25#define __YASIMAVR_AVR_SPI_H__
75 virtual void reset(
int flags)
override;
91 bool m_intflag_accessed;
93 void update_framerate();
94 void update_serial_config();
95 void frame_completed();
#define AVR_ARCHAVR_PUBLIC_API
Definition arch_avr_globals.h:46
Definition arch_avr_spi.cpp:71
Definition arch_avr_spi.cpp:49
Implementation of a SPI interface for AVR series Features:
Definition arch_avr_spi.h:67
Basic AVR device model.
Definition sim_device.h:61
Generic helper to manage a typical Interrupt Flag/Enable in a I/O register.
Definition sim_interrupt.h:324
Abstract class defining a framework for MCU peripherals.
Definition sim_peripheral.h:286
virtual bool init(Device &device)
Definition sim_peripheral.cpp:60
virtual bool ctlreq(ctlreq_id_t req, ctlreq_data_t *data)
Definition sim_peripheral.cpp:79
virtual void ioreg_write_handler(reg_addr_t addr, const ioreg_write_t &data) override
Definition sim_peripheral.cpp:117
virtual uint8_t ioreg_read_handler(reg_addr_t addr, uint8_t value) override
Definition sim_peripheral.cpp:91
virtual uint8_t ioreg_peek_handler(reg_addr_t addr, uint8_t value) override
Definition sim_peripheral.cpp:106
virtual void reset(int flags)
Definition sim_peripheral.cpp:72
Representation of a I/O register address, with validity state.
Definition sim_types.h:60
Represents a field in a I/O register with address.
Definition sim_types.h:348
int ctlreq_id_t
Definition sim_peripheral.h:111
#define YASIMAVR_BEGIN_NAMESPACE
Definition sim_globals.h:58
#define YASIMAVR_END_NAMESPACE
Definition sim_globals.h:59
short int_vect_t
Definition sim_types.h:43
Configuration structure for ArchAVR_SPI.
Definition arch_avr_spi.h:38
regbit_t rb_wcol
Definition arch_avr_spi.h:51
regbit_t rb_cpol
Definition arch_avr_spi.h:46
regbit_t rb_clock
Definition arch_avr_spi.h:49
int_vect_t iv_spi
Definition arch_avr_spi.h:53
regbit_t rb_enable
Definition arch_avr_spi.h:42
regbit_t rb_mode
Definition arch_avr_spi.h:45
regbit_t rb_cpha
Definition arch_avr_spi.h:47
regbit_t rb_dord
Definition arch_avr_spi.h:48
reg_addr_t reg_data
Definition arch_avr_spi.h:40
regbit_t rb_int_enable
Definition arch_avr_spi.h:43
regbit_t rb_clock2x
Definition arch_avr_spi.h:50
regbit_t rb_int_flag
Definition arch_avr_spi.h:44
Definition sim_peripheral.h:237
Definition sim_ioreg.h:39