Table of Contents

Class CardDetectParameters

Namespace
nanoFramework.System.IO.FileSystem
Assembly
System.IO.FileSystem.dll

Parameter used for Card detection when creating a SDcard instance.

public class CardDetectParameters
Inheritance
CardDetectParameters
Inherited Members
Extension Methods

Constructors

CardDetectParameters()

public CardDetectParameters()

Fields

autoMount

When enabled will try to automatically mount the SD card when the card is inserted. If the card is removed unexpectedly it will try to unmount card to release resources.

public bool autoMount

Field Value

bool

cardDetectPin

The optional card detect GPIO pin which must be set to a valid pin if EnableCardDetectPin is true. If defined a StorageEventManager event will be raised when a card is inserted or removed.

public uint cardDetectPin

Field Value

uint

cardDetectedState

The state of the pin when the card is detected. Defaults to false(low) if not specified. If using card detect logic then this depends on connected hardware.

public bool cardDetectedState

Field Value

bool

enableCardDetectPin

Set true when an Card Detect Pin is used. The cardDetectPin parameter must have a valid GPIO pin.

public bool enableCardDetectPin

Field Value

bool

Remarks

Not all SD Card modules have a card detect pin or the pin connected to a GPIO pin.