pub struct NandDevice { /* private fields */ }
Expand description

NAND Device

Implementations§

0xFF Reset: ONFI Section 5.3

0x90 Read ID: ONFI Section 5.6

0xEC Read Parameter Page: ONFI Section 5.7

0xED Read Unique ID: ONFI Section 5.8

0x60 Block Erase: ONFI Section 5.9

Page Read: ONFI Section 5.14

This method starts a Page Read operation but does not include the data phase. This method is useful when DMA is used for the data phase.

For a method that completes the entire transaction see page_read.

Page Read: ONFI Section 5.14

Executes a Page Read operation from the specified address. Data is copied to the slice page. The length of page determines the read length. The read length should not exceed the number of bytes between the specified address and the end of the page. Reading beyond the end of the page results in indeterminate values being returned.

If spare is true, then the read occours from the spare area. The address offset from the start of the page plus the slice length should not exceed the spare area size.

Page Program: ONFI Section 5.16

Executes a page program to the specified address and waits for it to complete. The length of page determines the write length. The write length should not exceed the number of bytes between the specified address and the end of the page. Writing beyond this length is undefined.

Methods to allow users to implement their own commands using unsafe.

Return a Raw Pointer to the common command space. This memory-mapped address is used to write command phase of NAND device transactions.

It is recommended to use ptr::write_volatile to write to this pointer. Depending on the memory map in use, you may need to ensure the write is committed by using core::atomic::sync::fence.

Return a Raw Pointer to the attribute command space. This memory-mapped address is used to write command phase of NAND device transactions.

It is recommended to use ptr::write_volatile to write to this pointer. Depending on the memory map in use, you may need to ensure the write is committed by using core::atomic::sync::fence.

Return a Raw Pointer to the common address space. This memory-mapped address is used to write the address phase of NAND device transactions.

It is recommended to use ptr::write_volatile to write to this pointer. Depending on the memory map in use, you may need to ensure the write is committed by using core::atomic::sync::fence.

Return a Raw Pointer to the common data space. This memory-mapped address is used to write or read the data phase of NAND device transactions.

It is recommended to use ptr::write_volatile to write to this pointer. Depending on the memory map in use, you may need to ensure the write is committed by using core::atomic::sync::fence.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.