Files
fmini-1/tests/usb_desc_v10.h
T
ClaudeandКирилл Сапфиров c8d571bd22 Felucca 1.6.1
MENU > LARGE keeps one size per knob (#251): each knob shows all its
values in the size its longest value fits, so a value no longer jumps
between sizes while it is turned. No new fonts.

Updates check the package's size on the device: the update entry and the
update loader take only a package whose firmware area is exactly the
FM-1's. Another device's package is refused before anything is erased
(the update screen shows FAILED -15; the loader answers -14).

Second core (beta, PR #247): MENU > SYSTEM > 2ND CORE, OFF by default.
ON (BETA) applies from the next power-on: the second core renders some
of the four parts of each block, bit for bit the one-core sound. A unit
whose second core misreads goes on with one core and sets it back to
OFF. FELUCCA_CPU2=0 builds none of it. Start, mailbox and guards from
X0X (with Melodee's dual-core findings), the split and hardening after
Jangada.

Felucca-Engines: ANALOG, LOFI, TRIO, WHEEL and NOISE, the engine
interface, the shared DSP helpers and their table generator move to
https://github.com/hugelton/Felucca-Engines under the MIT licence,
included as the git submodule firmware/engines. The firmware stays
GPL-3.0-only; clone with --recurse-submodules. The sound is unchanged
(the same golden renders); the engines' own tests run with Felucca's.

Co-authored-by: Кирилл Сапфиров <gospodindilly@gmail.com>
2026-10-17 19:04:28 -03:00

67 lines
5.5 KiB
C

/* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments */
/* The USB descriptors of Felucca 1.0 / 1.0.1 (src/usb.c as released), as a host read them: the reference
* the default build must still send byte for byte (tests/usb_desc_test.c). CDC = FELUCCA_CDC=1, NOCDC = FELUCCA_CDC=0,
* both with FELUCCA_UAC=1; CDC_NOUAC and MIDI without the audio input (MIDI = the update loader's layout). */
static const uint8_t V10_CDC_DEV[18] = {
0x12, 0x01, 0x00, 0x02, 0xEF, 0x02, 0x01, 0x40, 0x09, 0x12, 0x01, 0x00, 0x11, 0x03, 0x01, 0x02,
0x00, 0x01};
static const uint8_t V10_CDC_CFG[249] = {
0x09, 0x02, 0xF9, 0x00, 0x05, 0x01, 0x00, 0x80, 0x32, 0x08, 0x0B, 0x00, 0x03, 0x01, 0x01, 0x00,
0x00, 0x09, 0x04, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x0A, 0x24, 0x01, 0x00, 0x01, 0x1F,
0x00, 0x02, 0x01, 0x02, 0x0C, 0x24, 0x02, 0x01, 0x03, 0x06, 0x00, 0x02, 0x03, 0x00, 0x00, 0x00,
0x09, 0x24, 0x03, 0x02, 0x01, 0x01, 0x00, 0x01, 0x00, 0x09, 0x04, 0x01, 0x00, 0x02, 0x01, 0x03,
0x00, 0x00, 0x07, 0x24, 0x01, 0x00, 0x01, 0x41, 0x00, 0x06, 0x24, 0x02, 0x01, 0x01, 0x00, 0x06,
0x24, 0x02, 0x02, 0x02, 0x00, 0x09, 0x24, 0x03, 0x01, 0x03, 0x01, 0x02, 0x01, 0x00, 0x09, 0x24,
0x03, 0x02, 0x04, 0x01, 0x01, 0x01, 0x00, 0x09, 0x05, 0x01, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00,
0x05, 0x25, 0x01, 0x01, 0x01, 0x09, 0x05, 0x81, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x05, 0x25,
0x01, 0x01, 0x03, 0x09, 0x04, 0x02, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x09, 0x04, 0x02, 0x01,
0x01, 0x01, 0x02, 0x00, 0x00, 0x07, 0x24, 0x01, 0x02, 0x01, 0x01, 0x00, 0x0B, 0x24, 0x02, 0x01,
0x02, 0x02, 0x10, 0x01, 0x44, 0xAC, 0x00, 0x09, 0x05, 0x84, 0x05, 0xB8, 0x00, 0x01, 0x00, 0x00,
0x07, 0x25, 0x01, 0x01, 0x00, 0x00, 0x00, 0x08, 0x0B, 0x03, 0x02, 0x02, 0x02, 0x01, 0x00, 0x09,
0x04, 0x03, 0x00, 0x01, 0x02, 0x02, 0x01, 0x00, 0x05, 0x24, 0x00, 0x10, 0x01, 0x05, 0x24, 0x01,
0x00, 0x04, 0x04, 0x24, 0x02, 0x02, 0x05, 0x24, 0x06, 0x03, 0x04, 0x07, 0x05, 0x82, 0x03, 0x08,
0x00, 0x10, 0x09, 0x04, 0x04, 0x00, 0x02, 0x0A, 0x00, 0x00, 0x00, 0x07, 0x05, 0x03, 0x02, 0x40,
0x00, 0x00, 0x07, 0x05, 0x83, 0x02, 0x40, 0x00, 0x00};
static const uint8_t V10_NOCDC_DEV[18] = {
0x12, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x40, 0x09, 0x12, 0x01, 0x00, 0x10, 0x03, 0x01, 0x02,
0x00, 0x01};
static const uint8_t V10_NOCDC_CFG[175] = {
0x09, 0x02, 0xAF, 0x00, 0x03, 0x01, 0x00, 0x80, 0x32, 0x09, 0x04, 0x00, 0x00, 0x00, 0x01, 0x01,
0x00, 0x00, 0x0A, 0x24, 0x01, 0x00, 0x01, 0x1F, 0x00, 0x02, 0x01, 0x02, 0x0C, 0x24, 0x02, 0x01,
0x03, 0x06, 0x00, 0x02, 0x03, 0x00, 0x00, 0x00, 0x09, 0x24, 0x03, 0x02, 0x01, 0x01, 0x00, 0x01,
0x00, 0x09, 0x04, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00, 0x00, 0x07, 0x24, 0x01, 0x00, 0x01, 0x41,
0x00, 0x06, 0x24, 0x02, 0x01, 0x01, 0x00, 0x06, 0x24, 0x02, 0x02, 0x02, 0x00, 0x09, 0x24, 0x03,
0x01, 0x03, 0x01, 0x02, 0x01, 0x00, 0x09, 0x24, 0x03, 0x02, 0x04, 0x01, 0x01, 0x01, 0x00, 0x09,
0x05, 0x01, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x05, 0x25, 0x01, 0x01, 0x01, 0x09, 0x05, 0x81,
0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x05, 0x25, 0x01, 0x01, 0x03, 0x09, 0x04, 0x02, 0x00, 0x00,
0x01, 0x02, 0x00, 0x00, 0x09, 0x04, 0x02, 0x01, 0x01, 0x01, 0x02, 0x00, 0x00, 0x07, 0x24, 0x01,
0x02, 0x01, 0x01, 0x00, 0x0B, 0x24, 0x02, 0x01, 0x02, 0x02, 0x10, 0x01, 0x44, 0xAC, 0x00, 0x09,
0x05, 0x84, 0x05, 0xB8, 0x00, 0x01, 0x00, 0x00, 0x07, 0x25, 0x01, 0x01, 0x00, 0x00, 0x00};
static const uint8_t V10_CDC_NOUAC_DEV[18] = {
0x12, 0x01, 0x00, 0x02, 0xEF, 0x02, 0x01, 0x40, 0x09, 0x12, 0x01, 0x00, 0x01, 0x03, 0x01, 0x02,
0x00, 0x01};
static const uint8_t V10_CDC_NOUAC_CFG[175] = {
0x09, 0x02, 0xAF, 0x00, 0x04, 0x01, 0x00, 0x80, 0x32, 0x08, 0x0B, 0x00, 0x02, 0x01, 0x01, 0x00,
0x00, 0x09, 0x04, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x09, 0x24, 0x01, 0x00, 0x01, 0x09,
0x00, 0x01, 0x01, 0x09, 0x04, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00, 0x00, 0x07, 0x24, 0x01, 0x00,
0x01, 0x41, 0x00, 0x06, 0x24, 0x02, 0x01, 0x01, 0x00, 0x06, 0x24, 0x02, 0x02, 0x02, 0x00, 0x09,
0x24, 0x03, 0x01, 0x03, 0x01, 0x02, 0x01, 0x00, 0x09, 0x24, 0x03, 0x02, 0x04, 0x01, 0x01, 0x01,
0x00, 0x09, 0x05, 0x01, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x05, 0x25, 0x01, 0x01, 0x01, 0x09,
0x05, 0x81, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x05, 0x25, 0x01, 0x01, 0x03, 0x08, 0x0B, 0x02,
0x02, 0x02, 0x02, 0x01, 0x00, 0x09, 0x04, 0x02, 0x00, 0x01, 0x02, 0x02, 0x01, 0x00, 0x05, 0x24,
0x00, 0x10, 0x01, 0x05, 0x24, 0x01, 0x00, 0x03, 0x04, 0x24, 0x02, 0x02, 0x05, 0x24, 0x06, 0x02,
0x03, 0x07, 0x05, 0x82, 0x03, 0x08, 0x00, 0x10, 0x09, 0x04, 0x03, 0x00, 0x02, 0x0A, 0x00, 0x00,
0x00, 0x07, 0x05, 0x03, 0x02, 0x40, 0x00, 0x00, 0x07, 0x05, 0x83, 0x02, 0x40, 0x00, 0x00};
static const uint8_t V10_MIDI_DEV[18] = {
0x12, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x40, 0x09, 0x12, 0x01, 0x00, 0x00, 0x03, 0x01, 0x02,
0x00, 0x01};
static const uint8_t V10_MIDI_CFG[101] = {
0x09, 0x02, 0x65, 0x00, 0x02, 0x01, 0x00, 0x80, 0x32, 0x09, 0x04, 0x00, 0x00, 0x00, 0x01, 0x01,
0x00, 0x00, 0x09, 0x24, 0x01, 0x00, 0x01, 0x09, 0x00, 0x01, 0x01, 0x09, 0x04, 0x01, 0x00, 0x02,
0x01, 0x03, 0x00, 0x00, 0x07, 0x24, 0x01, 0x00, 0x01, 0x41, 0x00, 0x06, 0x24, 0x02, 0x01, 0x01,
0x00, 0x06, 0x24, 0x02, 0x02, 0x02, 0x00, 0x09, 0x24, 0x03, 0x01, 0x03, 0x01, 0x02, 0x01, 0x00,
0x09, 0x24, 0x03, 0x02, 0x04, 0x01, 0x01, 0x01, 0x00, 0x09, 0x05, 0x01, 0x02, 0x40, 0x00, 0x00,
0x00, 0x00, 0x05, 0x25, 0x01, 0x01, 0x01, 0x09, 0x05, 0x81, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00,
0x05, 0x25, 0x01, 0x01, 0x03};