llvm-mos-sdk
sim
sim-io.h
Go to the documentation of this file.
1
#ifndef _SIM_IO_H_
2
#define _SIM_IO_H_
3
4
#include <stdint.h>
5
6
struct
_sim_reg
{
7
uint8_t
clock
[4];
// 0
8
uint8_t
unclaimed
;
// 4
9
char
getchar
;
// 5
10
char
input_eof
;
// 6
11
uint8_t
abort
;
// 7
12
int8_t
exit
;
// 8
13
uint8_t
putchar
;
// 9
14
};
15
16
extern
volatile
struct
_sim_reg
*
const
sim_reg_iface
;
17
18
#endif // _SIM_IO_H_
_sim_reg::unclaimed
uint8_t unclaimed
Definition:
sim-io.h:8
_sim_reg::input_eof
char input_eof
Definition:
sim-io.h:10
_sim_reg::getchar
char getchar
Definition:
sim-io.h:9
_sim_reg::abort
uint8_t abort
Definition:
sim-io.h:11
std::uint8_t
::uint8_t uint8_t
Definition:
cstdint:21
std::int8_t
::int8_t int8_t
Definition:
cstdint:7
sim_reg_iface
volatile struct _sim_reg *const sim_reg_iface
_sim_reg::clock
uint8_t clock[4]
Definition:
sim-io.h:7
_sim_reg
Definition:
sim-io.h:6
_sim_reg::putchar
uint8_t putchar
Definition:
sim-io.h:13
_sim_reg::exit
int8_t exit
Definition:
sim-io.h:12
Generated by
1.8.17