Class Mount

extends Object

Class summary


sdcard-unformatted --mount-point/string --spi-bus/Bus --cs/any -> Mount
Mounts an SD-card as a FAT file system under mount-point on the spi-bus without formatting the flash.
sdcard --mount-point/string --spi-bus/Bus --cs/any --max-files/int= --allocation-unit-size/int= -> Mount
Mounts an SD-card as a FAT file system under mount-point on the spi-bus and formats the SD-card with max-files and allocation-unit-size if it is not already formatted.
nor-unformatted --mount-point/string --spi-bus/Bus --cs/any --frequency/int= -> Mount
Mounts an external NOR flash chip on the spi-bus without formatting the flash.
nor --mount-point/string --spi-bus/Bus --cs/any --frequency/int= --max-files/int= --allocation-unit-size/int= -> Mount
Mounts an external NOR flash chip on the spi-bus and format the SD-card with max-files and allocation-unit-size if it is not formatted.
nand-unformatted --mount-point/string --spi-bus/Bus --cs/any --frequency/int= -> Mount
Mounts an external NAND flash chip on the spi-bus without formatting the flash.
nand --mount-point/string --spi-bus/Bus --cs/any --frequency/int= --max-files/int= --allocation-unit-size/int= -> Mount
Mounts an external NAND flash chip on the spi-bus and formats the flash with max-files and allocation-unit-size if it is not already formatted.

Statics

nand --mount-point/string --spi-bus/Bus --cs/any --frequency/int=FREQUENCY-40MHZ --max-files/int=5 --allocation-unit-size/int=2048 -> Mount
Mounts an external NAND flash chip on the spi-bus and formats the flash with max-files and allocation-unit-size if it is not already formatted.
The cs is the chip select pin for the chip on the spi-bus and frequency is the SPI frequency. frequency should be one of the FREQUENCY-* constants (such as FREQUENCY-5MHZ).
Passing a gpio.Pin as cs is deprecated; provide the integer GPIO number instead. The gpio.Pin form will be removed in a future release.

nand-unformatted --mount-point/string --spi-bus/Bus --cs/any --frequency/int=FREQUENCY-40MHZ -> Mount
Mounts an external NAND flash chip on the spi-bus without formatting the flash.
The cs is the chip select pin for the chip on the spi-bus and frequency is the SPI frequency. frequency should be one of the FREQUENCY-* constants (such as FREQUENCY-5MHZ).
Passing a gpio.Pin as cs is deprecated; provide the integer GPIO number instead. The gpio.Pin form will be removed in a future release.

nor --mount-point/string --spi-bus/Bus --cs/any --frequency/int=FREQUENCY-40MHZ --max-files/int=5 --allocation-unit-size/int=16384 -> Mount
Mounts an external NOR flash chip on the spi-bus and format the SD-card with max-files and allocation-unit-size if it is not formatted.
The cs is the chip select pin for the chip on the spi-bus and frequency is the SPI frequency. frequency should be one of the FREQUENCY-* constants (such as FREQUENCY-5MHZ).
Passing a gpio.Pin as cs is deprecated; provide the integer GPIO number instead. The gpio.Pin form will be removed in a future release.

nor-unformatted --mount-point/string --spi-bus/Bus --cs/any --frequency/int=FREQUENCY-40MHZ -> Mount
Mounts an external NOR flash chip on the spi-bus without formatting the flash.
The cs is the chip select pin for the chip on the spi-bus and frequency is the SPI frequency. frequency should be one of the FREQUENCY-* constants (such as FREQUENCY-5MHZ).
Passing a gpio.Pin as cs is deprecated; provide the integer GPIO number instead. The gpio.Pin form will be removed in a future release.

sdcard --mount-point/string --spi-bus/Bus --cs/any --max-files/int=5 --allocation-unit-size/int=16384 -> Mount
Mounts an SD-card as a FAT file system under mount-point on the spi-bus and formats the SD-card with max-files and allocation-unit-size if it is not already formatted.
The cs is the chip select pin for the SD-card holder.
Passing a gpio.Pin as cs is deprecated; provide the integer GPIO number instead. The gpio.Pin form will be removed in a future release.

sdcard-unformatted --mount-point/string --spi-bus/Bus --cs/any -> Mount
Mounts an SD-card as a FAT file system under mount-point on the spi-bus without formatting the flash.
The cs is the chip select pin for the SD-card holder.
Passing a gpio.Pin as cs is deprecated; provide the integer GPIO number instead. The gpio.Pin form will be removed in a future release.

Methods

close -> none
Unmounts and releases resources for the external storage.

operator == other/any -> bool
Whether this object is equal to the other.
By default, identical is used for equality.
Inheritance
Classes overwrite this operator to get an equality specific to their needs. Equality operators often compare the type and field contents. For example:

class Pin:
  number/int

  constructor .number:

  operator == other:
    if other is not Pin: return false
    return number == other.number
A class doesn't have to follow the above format, but it must keep the operator in sync with any hash-code method. That is, if a class has a hash-code member, then the equality and hash-code must agree. If two instances are equal (a == b), then their hash codes must also be equal (a.hash-code == b.hash-code).

Stringifies this object.
Inheritance
Objects that need a human-friendly string representation should overwrite this method. The default string is based on the internal class-ID.