ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
board_usb_host.h
Go to the documentation of this file.
1
38
39#pragma once
40
41#include <stdint.h>
42#include <unicorn/unicorn.h>
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
64void board_usb_host_init(bool trace);
65
84void board_usb_host_set_allowed(bool allowed);
85
102uint64_t board_usb_host_read(uc_engine* uc, uint64_t addr, unsigned size, bool* handled);
103
123void board_usb_host_write(uc_engine* uc,
124 uint64_t addr,
125 unsigned size,
126 uint64_t value,
127 bool* handled);
128
141void board_usb_host_report(void);
142
143#ifdef __cplusplus
144}
145#endif
void board_usb_host_report(void)
Print the USBHS host-model section of the end-of-run summary.
void board_usb_host_write(uc_engine *uc, uint64_t addr, unsigned size, uint64_t value, bool *handled)
Dispatch an MMIO write inside the USBHS register window.
uint64_t board_usb_host_read(uc_engine *uc, uint64_t addr, unsigned size, bool *handled)
Dispatch an MMIO read inside the USBHS register window.
void board_usb_host_set_allowed(bool allowed)
Grant (or deny) the register-level loop for this firmware.
void board_usb_host_init(bool trace)
Reset the USBHS host-mode model to its power-on state.