Skip to content

Commit 125aa54

Browse files
committed
Add HSTX expander opcodes
1 parent 4b20ad4 commit 125aa54

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

rp235x-hal/src/hstx.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,18 @@ macro_rules! configure_bits_hstx {
307307
}
308308

309309
configure_bits_hstx!(0, 1, 2, 3, 4, 5, 6, 7);
310+
311+
/// "RAW" opcode for expander, OR with length argument to use
312+
pub const EXPANDER_CMD_RAW: u32 = 0;
313+
314+
/// "RAW_REPEAT" opcode for expander shifted to appropriate position, OR with length argument to use
315+
pub const EXPANDER_CMD_RAW_REPEAT: u32 = 1 << 12;
316+
317+
/// "TMDS" opcode for expander shifted to appropriate position, OR with length argument to use
318+
pub const EXPANDER_CMD_TMDS: u32 = 2 << 12;
319+
320+
/// "TMDS_REPEAT" opcode for expander shifted to appropriate position, OR with length argument to use
321+
pub const EXPANDER_CMD_TMDS_REPEAT: u32 = 3 << 12;
322+
323+
/// "NOP" opcode for expander
324+
pub const EXPANDER_CMD_NOP: u32 = 0xf << 12;

0 commit comments

Comments
 (0)