ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
tz_secure_only_usb_hs_descriptors.c File Reference

examples/ek_ra8d2/hw_validated/manual/tz_secure_only_usb_hs/src/tz_secure_only_usb_hs_descriptors.c More...

#include <stdint.h>
#include "tz_secure_only_usb_hs_steps.h"
#include "ux_api.h"
Include dependency graph for tz_secure_only_usb_hs_descriptors.c:

Go to the source code of this file.

Enumerations

enum  usb_langid_byte_t : uint8_t {
  k_usb_langid_en_us_lo = 0x09U ,
  k_usb_langid_en_us_hi = 0x04U
}

Variables

UCHAR s_tz_secure_only_usb_hs_device_framework_fs []
 Full-Speed CDC-ACM composite device framework (64-byte bulk MPS).
UCHAR s_tz_secure_only_usb_hs_device_framework_hs []
 High-Speed CDC-ACM composite device framework (512-byte bulk MPS).
UCHAR s_tz_secure_only_usb_hs_string_framework []
 USBX string descriptor table (vendor / product / serial).
UCHAR s_tz_secure_only_usb_hs_language_id_framework []
 USBX language-id table – US English (LANGID 0x0409).

Detailed Description

examples/ek_ra8d2/hw_validated/manual/tz_secure_only_usb_hs/src/tz_secure_only_usb_hs_descriptors.c

USB CDC-ACM descriptor frameworks for the secure-only USB-HS echo app.

Tag
[Ring 6 / APP] {World: S}

Second sibling translation unit for examples/ek_ra8d2/hw_validated/manual/tz_secure_only_usb_hs/src/main.c. Holds the four USBX descriptor tables (HS device framework, FS device framework, string framework, language-id framework). These byte arrays were moved here verbatim from main.c (a pure, behaviour-preserving code move) so that every translation unit stays under the 1000-line check_file_size.py cap.

The arrays are consumed by demo_worker_usbx_init in the companion tz_secure_only_usb_hs_steps.c translation unit, so they carry the cross-TU s_tz_secure_only_usb_hs_ prefix and are declared in tz_secure_only_usb_hs_steps.h with their explicit dimensions (a static_assert here cross-checks each declared dimension against the actual initializer length).

Author
Brighton Sikarskie
Date
2026-05-03
Since
0.1.0

Definition in file tz_secure_only_usb_hs_descriptors.c.

Enumeration Type Documentation

◆ usb_langid_byte_t

enum usb_langid_byte_t : uint8_t
Enumerator
k_usb_langid_en_us_lo 

LANGID 0x0409 low byte.

k_usb_langid_en_us_hi 

LANGID 0x0409 high byte.

Definition at line 374 of file tz_secure_only_usb_hs_descriptors.c.

Variable Documentation

◆ s_tz_secure_only_usb_hs_device_framework_fs

UCHAR s_tz_secure_only_usb_hs_device_framework_fs[]

Full-Speed CDC-ACM composite device framework (64-byte bulk MPS).

Defined in tz_secure_only_usb_hs_descriptors.c.

Since
0.1.0

Definition at line 51 of file tz_secure_only_usb_hs_descriptors.c.

Referenced by demo_worker_usbx_init().

◆ s_tz_secure_only_usb_hs_device_framework_hs

UCHAR s_tz_secure_only_usb_hs_device_framework_hs[]

High-Speed CDC-ACM composite device framework (512-byte bulk MPS).

Defined in tz_secure_only_usb_hs_descriptors.c.

Since
0.1.0

Definition at line 171 of file tz_secure_only_usb_hs_descriptors.c.

Referenced by demo_worker_usbx_init().

◆ s_tz_secure_only_usb_hs_language_id_framework

UCHAR s_tz_secure_only_usb_hs_language_id_framework[]
Initial value:
@ k_usb_langid_en_us_lo
LANGID 0x0409 low byte.
Definition main.c:359
@ k_usb_langid_en_us_hi
LANGID 0x0409 high byte.
Definition main.c:360

USBX language-id table – US English (LANGID 0x0409).

USBX language-id table – US English.

Defined in tz_secure_only_usb_hs_descriptors.c.

Since
0.1.0
0.1.0

Definition at line 384 of file tz_secure_only_usb_hs_descriptors.c.

Referenced by demo_worker_usbx_init().

◆ s_tz_secure_only_usb_hs_string_framework

UCHAR s_tz_secure_only_usb_hs_string_framework[]

USBX string descriptor table (vendor / product / serial).

Defined in tz_secure_only_usb_hs_descriptors.c.

Since
0.1.0
0.1.0

Definition at line 303 of file tz_secure_only_usb_hs_descriptors.c.

Referenced by demo_worker_usbx_init().