#[repr(C, align(64))]pub struct AmxConfig {
pub palette_id: u8,
pub start_row: u8,
pub reserved: [u8; 14],
pub cols_b: [u16; 8],
pub reserved2: [u8; 16],
pub rows: [u8; 8],
pub reserved3: [u8; 8],
}Expand description
64-byte AMX tile configuration structure (TILECFG).
Fields§
§palette_id: u8Palette ID (0 = init, 1 = Palette 1)
start_row: u8Start row for recovery after interrupt / context switch
reserved: [u8; 14]Reserved bytes
cols_b: [u16; 8]Column widths in bytes for each of the 8 tiles
reserved2: [u8; 16]Reserved bytes
rows: [u8; 8]Number of rows for each of the 8 tiles
reserved3: [u8; 8]Reserved bytes
Implementations§
Source§impl AmxConfig
impl AmxConfig
Sourcepub fn new_uniform(r: u8, c_bytes: u16) -> AmxConfig
pub fn new_uniform(r: u8, c_bytes: u16) -> AmxConfig
Creates a palette 1 configuration where all tiles have the specified rows and byte columns.
Trait Implementations§
impl Copy for AmxConfig
impl Eq for AmxConfig
impl StructuralPartialEq for AmxConfig
Auto Trait Implementations§
impl Freeze for AmxConfig
impl RefUnwindSafe for AmxConfig
impl Send for AmxConfig
impl Sync for AmxConfig
impl Unpin for AmxConfig
impl UnsafeUnpin for AmxConfig
impl UnwindSafe for AmxConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.