pub fn write_words(&self, offset: u32, words: &[u32]) -> Result<(), Error> {
        assert!(
            u32::max_value() - (words.len() * 4) as u32 > offset,
            "cannot write above {:#010x} - offset: {:#010x}, buffer length: {:#010x} words, words \
             above offset: {:#010x}",
            u32::max_value(),
            offset,
            words.len(),
            (u32::max_value() - offset) / 4
        );
        for (i, chunk) in words.chunks(LCODE_MAX_RW_WORDS).enumerate() {
            self.write_words_chunk(offset + (i * LCODE_ARM_RW_WORDS) as u32, chunk)
                .context("could not write word chunk to memory")?;
        }
        Ok(())
    }
/// Write words chunk to the FEL device memory.
Write words chunk to the FEL device memory.
Write words chunk to the FEL device memory .
pub fn write_words(&self, offset: u32, words: &[u32]) -> Result<(), Error> {
        assert!(
            u32::max_value() - (words.len() * 4) as u32 > offset,
            "cannot write above {:#010x} - offset: {:#010x}, buffer length: {:#010x} words, words \
             above offset: {:#010x}",
            u32::max_value(),
            offset,
            words.len(),
            (u32::max_value() - offset) / 4
        );
        for (i, chunk) in words.chunks(LCODE_MAX_RW_WORDS).enumerate() {
            self.write_words_chunk(offset + (i * LCODE_ARM_RW_WORDS) as u32, chunk)
                .context("could not write word chunk to memory")?;
        }
        Ok(())
    }
pub fn write_words ( & self , offset : u32 , words : & [ u32 ] ) -> Result < ( ) , Error > { assert ! ( u32 max_value ( ) ( words len ( ) 4 ) as u32 offset " \
 " u32 max_value ( ) offset words len ( ) ( u32 max_value ( ) offset ) 4 ) ; for ( i , chunk ) in words . chunks ( LCODE_MAX_RW_WORDS ) . enumerate ( ) { self . write_words_chunk ( offset + ( i * LCODE_ARM_RW_WORDS ) as u32 , chunk ) . context ( " " ) ? ; } Ok ( ( ) ) }
Write words chunk to the FEL device memory.
Write words chunk to the FEL device memory .
&self
offset
u32
words
&[u32]
&self
offset
u32
words
&[u32]