sys/shell/cmds/mtd.doc.md
@defgroup sys_shell_commands_mtd MTD shell command @ingroup sys_shell_commands @brief MTD shell command for low level storage device access
There are different subcommands available to read and write data to and from an MTD, as well as additional subcommands for example to print information or to control power states.
The subcommand takes a memory address and a length in bytes of how many bytes to read. @see mtd_read
The subcommand takes a page number, an offset within that page and a length in bytes of how many bytes to read. @see mtd_read_page
The subcommand takes a memory address and data to write.
If the optional parameter -b is used, it is expected that the provided data only
consists of hexadecimal digits, else it is expected that the data is a string.
@see mtd_write
The subcommand takes a page number, a byte offset within the page and data to write.
If the optional parameter -b is used, it is expected that the provided data only
consists of hexadecimal digits, else it is expected that the data is a string.
@see mtd_write_page_raw
The subcommand takes a page number, a byte offset within the page and data to write.
If the optional parameter -b is used, it is expected that the provided data only
consists of hexadecimal digits, else it is expected that the data is a string.
The command only can be used when the module mtd_write_page is used.
@see mtd_write_page
The subcommand takes a memory address and a length in bytes of how many bytes to erase. @see mtd_erase
The subcommand takes a sector number and additionally a number of bytes to erase from this sector. @see mtd_erase_sector
The subcommand takes no additional arguments. Information about storage size is printed.
The subcommand takes one parameter to power the MTD on or off, if it is implemented by the MTD driver. @see mtd_power