ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ux_hcd_ra8_usb.h
Go to the documentation of this file.
1
40
41#pragma once
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47#include "ra8_usb.h"
48
49struct UX_HCD_STRUCT;
50struct UX_ENDPOINT_STRUCT;
51struct UX_TRANSFER_STRUCT;
52
62
88
103[[nodiscard]] ra8_err_t ux_hcd_ra8_usb_uninitialize(void);
104
122
123/* Dispatcher exposed for direct invocation and unit tests. */
145unsigned int
146_ux_hcd_ra8_usb_function(struct UX_HCD_STRUCT* hcd, unsigned int function, void* parameter);
147
148#ifdef __cplusplus
149}
150#endif
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Native USB controller driver public API (device + host modes).
ra8_usb_speed_t
Selects which controller instance the call targets.
ra8_err_t ux_hcd_ra8_usb_initialize(ra8_usb_speed_t speed)
Register the ra8_usb host bridge as the active USBX HCD.
unsigned int _ux_hcd_ra8_usb_function(struct UX_HCD_STRUCT *hcd, unsigned int function, void *parameter)
ux hcd ra usb function.
ra8_usb_hcd_state_t
Run-state of the HCD bridge.
@ k_ux_hcd_ra8_usb_state_uninit
Bridge not yet initialized.
@ k_ux_hcd_ra8_usb_state_ready
Bridge installed; bus idle.
@ k_ux_hcd_ra8_usb_state_active
SOF generation enabled.
ra8_err_t ux_hcd_ra8_usb_uninitialize(void)
Tear down the ra8_usb HCD bridge.
ra8_usb_hcd_state_t ux_hcd_ra8_usb_state(void)
Read the bridge run-state.