Go to the source code of this file.
Enumerations | |
enum | { MAX_BUF = 1024 } |
Functions | |
int | display_open (char *prog, int no_xterm, int flash_sz, int sram_sz, int sram_start, int eeprom_sz) |
void | display_close (void) |
void | display_send_msg (char *msg) |
void | display_clock (int clock) |
void | display_pc (int val) |
void | display_reg (int reg, uint8_t val) |
void | display_io_reg (int reg, uint8_t val) |
void | display_io_reg_name (int reg, char *name) |
void | display_flash (int addr, int len, uint16_t *vals) |
void | display_sram (int addr, int len, uint8_t *vals) |
void | display_eeprom (int addr, int len, uint8_t *vals) |
Simulavr has the ability to use a coprocess to display register and memory values in near real time.
Definition in file display.c.
|
Open a display as a coprocess.
Returns an open file descriptor of a pipe used to send data to the helper program. Returns -1 if something failed. Definition at line 85 of file display.c. References avr_warning. |
|
Close a display and send coprocess a quit message.
Definition at line 181 of file display.c. References display_send_msg(). |
|
Encode the message and send to display.
FIXME: TRoth: This should be a private function. It is only public so that dtest.c can be kept simple. dtest.c should be changed to avoid direct use of this function. [dtest.c has served it's purpose and will be retired soon.] Definition at line 220 of file display.c. References avr_error, avr_free(), avr_new0, and avr_warning. Referenced by display_clock(), display_close(), display_eeprom(), display_flash(), display_io_reg(), display_io_reg_name(), display_pc(), display_reg(), and display_sram(). |
|
Update the time in the display.
Definition at line 255 of file display.c. References display_send_msg(). Referenced by avr_core_reset(). |
|
Update the Program Counter in the display.
Definition at line 269 of file display.c. References display_send_msg(). |
|
Update a register in the display.
Definition at line 284 of file display.c. References display_send_msg(). |
|
Update an IO register in the display.
Definition at line 299 of file display.c. References display_send_msg(). Referenced by mem_write(). |
|
Specify a name for an IO register.
Definition at line 316 of file display.c. References display_send_msg(). Referenced by avr_core_io_display_names(). |
|
Update a block of flash addresses in the display.
Each address in the flash references a single 16-bit wide word (or opcode or instruction). Therefore, flash addresses are aligned to 16-bit boundaries. It is simplest to consider the flash an array of 16-bit values indexed by the address. Definition at line 340 of file display.c. References avr_error, and display_send_msg(). Referenced by flash_write(). |
|
Update a block of sram addresses in the display.
Definition at line 372 of file display.c. References avr_error, and display_send_msg(). |
|
Update a block of eeprom addresses in the display.
Definition at line 404 of file display.c. References avr_error, and display_send_msg(). |