Skip to content

Commit

Permalink
feat: Add A3040 test data
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallios committed Feb 25, 2024
1 parent a8e724f commit 1206e2d
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
66 changes: 66 additions & 0 deletions test_data/src/a3040.rs
Original file line number Diff line number Diff line change
@@ -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] = [

Check warning on line 13 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Check

constant `anc` should have an upper case name

Check warning on line 13 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Tests with stable Rust

constant `anc` should have an upper case name
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] = [

Check warning on line 25 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Check

constant `trans` should have an upper case name

Check warning on line 25 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Tests with stable Rust

constant `trans` should have an upper case name
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] = [

Check warning on line 37 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Check

constant `normal` should have an upper case name

Check warning on line 37 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Tests with stable Rust

constant `normal` should have an upper case name
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, // ANC?
0x7, 0x7, 0x2, 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, 0x57,
];

pub const max_eq: [u8; 152] = [

Check warning on line 50 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Check

constant `max_eq` should have an upper case name

Check warning on line 50 in test_data/src/a3040.rs

View workflow job for this annotation

GitHub Actions / Tests with stable Rust

constant `max_eq` should have an upper case name
0x9, 0xFF, 0x0, 0x0, 0x1, 0x1, 0x1, 0x98, 0x0, 0x5, 0xFF, 0x30, 0x36, 0x2E, 0x33, 0x34, 0x33,
0x30, 0x34, 0x30, 0x45, 0x41, 0x43, 0x33, 0x35,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, 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];
1 change: 1 addition & 0 deletions test_data/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub mod a3951;
pub mod a3040;

0 comments on commit 1206e2d

Please sign in to comment.