From 1206e2d9a6fa6b1fac2800458e28f2ba254f0e14 Mon Sep 17 00:00:00 2001 From: Gregory Mallios Date: Sun, 25 Feb 2024 20:53:19 +0200 Subject: [PATCH] feat: Add A3040 test data --- test_data/src/a3040.rs | 66 ++++++++++++++++++++++++++++++++++++++++++ test_data/src/lib.rs | 1 + 2 files changed, 67 insertions(+) create mode 100644 test_data/src/a3040.rs diff --git a/test_data/src/a3040.rs b/test_data/src/a3040.rs new file mode 100644 index 0000000..467dfca --- /dev/null +++ b/test_data/src/a3040.rs @@ -0,0 +1,66 @@ +pub const A3040_STATE_UPDATE_BYTES: [u8; 152] = [ + 0x9, 0xFF, 0x0, 0x0, 0x1, 0x1, 0x1, 0x98, 0x0, 0x3, 0xFF, 0x30, 0x36, 0x2E, 0x33, 0x34, 0x33, + 0x30, 0x34, 0x30, 0x45, 0x41, 0x43, 0x33, 0x35, 0x36, 0x43, 0x43, 0x45, 0x45, 0x45, 0x38, 0x0, + 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x0, 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, + 0x78, 0x78, 0x78, 0x0, 0x0, 0x4, 0x4, 0x7, 0x7, 0x0, 0x50, 0x1, 0x0, 0x0, 0x5, 0xFF, 0x0, 0x0, + 0xFF, 0x0, 0x31, 0x0, 0x1, 0xFF, 0x0, 0x1, 0x1, 0x0, 0x5A, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x32, + 0xFF, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, + 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, 0xB4, 0x3C, + 0xB4, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x78, 0x78, 0x78, 0x78, + 0x78, 0x78, 0x78, 0x78, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x57, +]; + +pub const anc: [u8; 152] = [ + 0x9, 0xFF, 0x0, 0x0, 0x1, 0x1, 0x1, 0x98, 0x0, 0x2, 0xFF, 0x30, 0x36, 0x2E, 0x33, 0x34, 0x33, + 0x30, 0x34, 0x30, 0x45, 0x41, 0x43, 0x33, 0x35, 0x36, 0x43, 0x43, 0x45, 0x45, 0x45, 0x38, 0x0, + 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x0, 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, + 0x78, 0x78, 0x78, 0x0, 0x0, 0x4, 0x4, 0x7, 0x7, 0x0, 0x50, 0x1, 0x1, 0x0, 0x5, 0xFF, 0x0, 0x0, + 0xFF, 0x0, 0x31, 0x0, 0x1, 0xFF, 0x0, 0x1, 0x1, 0x0, 0x5A, 0x0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x32, + 0xFF, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, + 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, 0xB4, 0x3C, + 0xB4, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x78, 0x78, 0x78, 0x78, + 0x78, 0x78, 0x78, 0x78, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x55, +]; + +pub const trans: [u8; 152] = [ + 0x9, 0xFF, 0x0, 0x0, 0x1, 0x1, 0x1, 0x98, 0x0, 0x2, 0xFF, 0x30, 0x36, 0x2E, 0x33, 0x34, 0x33, + 0x30, 0x34, 0x30, 0x45, 0x41, 0x43, 0x33, 0x35, 0x36, 0x43, 0x43, 0x45, 0x45, 0x45, 0x38, 0x0, + 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x0, 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, + 0x78, 0x78, 0x78, 0x0, 0x0, 0x4, 0x4, 0x7, 0x7, 0x1, 0x50, 0x1, 0x1, 0x0, 0x5, 0xFF, 0x0, 0x0, + 0xFF, 0x0, 0x31, 0x0, 0x1, 0xFF, 0x0, 0x1, 0x1, 0x0, 0x5A, 0x0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x32, + 0xFF, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, + 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, 0xB4, 0x3C, + 0xB4, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x78, 0x78, 0x78, 0x78, + 0x78, 0x78, 0x78, 0x78, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x56, +]; + +pub const normal: [u8; 152] = [ + 0x9, 0xFF, 0x0, 0x0, 0x1, 0x1, 0x1, 0x98, 0x0, 0x2, 0xFF, 0x30, 0x36, 0x2E, 0x33, 0x34, 0x33, + 0x30, 0x34, 0x30, 0x45, 0x41, 0x43, 0x33, 0x35, 0x36, 0x43, 0x43, 0x45, 0x45, 0x45, 0x38, 0x0, + 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x0, 0x0, 0x78, 0x78, 0x78, 0x78, 0x78, + 0x78, 0x78, 0x78, 0x0, 0x0, 0x4, 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3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, + 0x3C, 0x3C, 0x3C, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3C, 0x3C, 0x3C, 0x3C, 0xB4, 0x3C, + 0xB4, 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7D, 0x7B, 0x7C, 0x7C, + 0x7C, 0x7C, 0x7C, 0x7E, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x77, +]; + +pub const SOUND_MODE_UPDATE_NOISE_CANCELLING: [u8; 16] = [0x9, 0xFF, 0x0, 0x0, 0x1, 0x6, 0x1, 0x10, 0x0, 0x0, 0x51, 0x1, 0x1, 0x0, 0x5, 0x78]; +pub const SOUND_MODE_UPDATE_TRANSPARENCY: [u8; 16] = [0x9, 0xFF, 0x0, 0x0, 0x1, 0x6, 0x1, 0x10, 0x0, 0x1, 0x50, 0x1, 0x1, 0x0, 0x5, 0x78]; +pub const SOUND_MODE_UPDATE_NORMAL: [u8; 16] = [0x9, 0xFF, 0x0, 0x0, 0x1, 0x6, 0x1, 0x10, 0x0, 0x2, 0x50, 0x1, 0x1, 0x0, 0x5, 0x79]; +pub const BASS_UP_UPDATE_ENABLE: [u8; 12] = [0x9, 0xFF, 0x0, 0x0, 0x1, 0x2, 0x1, 0xC, 0x0, 0x2, 0x0, 0x1A]; +pub const BASS_UP_UPDATE_DISABLE: [u8; 12] = [0x9, 0xFF, 0x0, 0x0, 0x1, 0x2, 0x1, 0xC, 0x0, 0xFE, 0xFE, 0x14]; \ No newline at end of file diff --git a/test_data/src/lib.rs b/test_data/src/lib.rs index 3bf2bf7..07c375f 100644 --- a/test_data/src/lib.rs +++ b/test_data/src/lib.rs @@ -1 +1,2 @@ pub mod a3951; +pub mod a3040; \ No newline at end of file