|
| 1 | +# Summary |
| 2 | + |
| 3 | + Members | Descriptions |
| 4 | +--------------------------------|--------------------------------------------- |
| 5 | +`enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546) | |
| 6 | +`enum ` [`FileSystems`](#_arduino___p_o_s_i_x_storage_8h_1ac01996562b852a6b36ad87908429ad35) | |
| 7 | +`enum ` [`MountFlags`](#_arduino___p_o_s_i_x_storage_8h_1a069889b849809b552adf0513c6db2b85) | |
| 8 | +`public int ` [`mount`](#_arduino___p_o_s_i_x_storage_8h_1a22178afb74ae05ab1dcf8c50eb4a9d1f)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName, const enum ` [`FileSystems`](#_arduino___p_o_s_i_x_storage_8h_1ac01996562b852a6b36ad87908429ad35)` fileSystem, const enum ` [`MountFlags`](#_arduino___p_o_s_i_x_storage_8h_1a069889b849809b552adf0513c6db2b85)` mountFlags)` | Attach a file system to a device. |
| 9 | +`public int ` [`umount`](#_arduino___p_o_s_i_x_storage_8h_1a57b5f0c881dedaf55fe1b9c5fa59e1f8)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName)` | Remove the attached file system from a device. |
| 10 | +`public int ` [`register_hotplug_callback`](#_arduino___p_o_s_i_x_storage_8h_1a1a914f0970d317b6a74bef4368cbcae8)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName, void(*)() callbackFunction)` | Register a hotplug callback function. Currently only supported for DEV_USB on Portenta C33. |
| 11 | +`public int ` [`deregister_hotplug_callback`](#_arduino___p_o_s_i_x_storage_8h_1ae80d0ace82aad5ef4a130953290efbd7)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName)` | Deregister a previously registered hotplug callback function. Not currently supported on any platform. |
| 12 | +`public int ` [`mkfs`](#_arduino___p_o_s_i_x_storage_8h_1a834ae6d0e65c5b47f9d8932f7ad0c499)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName, const enum ` [`FileSystems`](#_arduino___p_o_s_i_x_storage_8h_1ac01996562b852a6b36ad87908429ad35)` fileSystem)` | Format a device (make file system). |
| 13 | + |
| 14 | +## Members |
| 15 | + |
| 16 | +#### `enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546) <a id="_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546" class="anchor"></a> |
| 17 | + |
| 18 | + Values | Descriptions |
| 19 | +--------------------------------|--------------------------------------------- |
| 20 | +DEV_SDCARD | SD Card. |
| 21 | +DEV_USB | USB Thumb Drive. |
| 22 | + |
| 23 | +#### `enum ` [`FileSystems`](#_arduino___p_o_s_i_x_storage_8h_1ac01996562b852a6b36ad87908429ad35) <a id="_arduino___p_o_s_i_x_storage_8h_1ac01996562b852a6b36ad87908429ad35" class="anchor"></a> |
| 24 | + |
| 25 | + Values | Descriptions |
| 26 | +--------------------------------|--------------------------------------------- |
| 27 | +FS_FAT | FAT file system. |
| 28 | +FS_LITTLEFS | LittleFS file system. |
| 29 | + |
| 30 | +#### `enum ` [`MountFlags`](#_arduino___p_o_s_i_x_storage_8h_1a069889b849809b552adf0513c6db2b85) <a id="_arduino___p_o_s_i_x_storage_8h_1a069889b849809b552adf0513c6db2b85" class="anchor"></a> |
| 31 | + |
| 32 | + Values | Descriptions |
| 33 | +--------------------------------|--------------------------------------------- |
| 34 | +MNT_DEFAULT | Default mount mode. |
| 35 | +MNT_RDONLY | Read only mode. |
| 36 | + |
| 37 | +#### `public int ` [`mount`](#_arduino___p_o_s_i_x_storage_8h_1a22178afb74ae05ab1dcf8c50eb4a9d1f)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName, const enum ` [`FileSystems`](#_arduino___p_o_s_i_x_storage_8h_1ac01996562b852a6b36ad87908429ad35)` fileSystem, const enum ` [`MountFlags`](#_arduino___p_o_s_i_x_storage_8h_1a069889b849809b552adf0513c6db2b85)` mountFlags)` <a id="_arduino___p_o_s_i_x_storage_8h_1a22178afb74ae05ab1dcf8c50eb4a9d1f" class="anchor"></a> |
| 38 | + |
| 39 | +Attach a file system to a device. |
| 40 | + |
| 41 | +#### Parameters |
| 42 | +* `deviceName` The device to attach to: DEV_SDCARD or DEV_USB. |
| 43 | + |
| 44 | +* `fileSystem` The file system type to attach: FS_FAT or FS_LITTLEFS. |
| 45 | + |
| 46 | +* `mountFlags` The only valid flag at this time: MNT_DEFAULT. |
| 47 | + |
| 48 | +#### Returns |
| 49 | +On success: 0. On failure: -1 with an error code in the errno variable. |
| 50 | + |
| 51 | +#### `public int ` [`umount`](#_arduino___p_o_s_i_x_storage_8h_1a57b5f0c881dedaf55fe1b9c5fa59e1f8)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName)` <a id="_arduino___p_o_s_i_x_storage_8h_1a57b5f0c881dedaf55fe1b9c5fa59e1f8" class="anchor"></a> |
| 52 | + |
| 53 | +Remove the attached file system from a device. |
| 54 | + |
| 55 | +#### Parameters |
| 56 | +* `deviceName` The device to remove from: DEV_SDCARD or DEV_USB. |
| 57 | + |
| 58 | +#### Returns |
| 59 | +On success: 0. On failure: -1 with an error code in the errno variable. |
| 60 | + |
| 61 | +#### `public int ` [`register_hotplug_callback`](#_arduino___p_o_s_i_x_storage_8h_1a1a914f0970d317b6a74bef4368cbcae8)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName, void(*)() callbackFunction)` <a id="_arduino___p_o_s_i_x_storage_8h_1a1a914f0970d317b6a74bef4368cbcae8" class="anchor"></a> |
| 62 | + |
| 63 | +Register a hotplug callback function. Currently only supported for DEV_USB on Portenta C33. |
| 64 | + |
| 65 | +#### Parameters |
| 66 | +* `deviceName` The device to register for: DEV_SDCARD or DEV_USB. |
| 67 | + |
| 68 | +* `callbackFunction` A function pointer to the callback. |
| 69 | + |
| 70 | +#### Returns |
| 71 | +On success: 0. On failure: -1 with an error code in the errno variable. |
| 72 | + |
| 73 | +#### `public int ` [`deregister_hotplug_callback`](#_arduino___p_o_s_i_x_storage_8h_1ae80d0ace82aad5ef4a130953290efbd7)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName)` <a id="_arduino___p_o_s_i_x_storage_8h_1ae80d0ace82aad5ef4a130953290efbd7" class="anchor"></a> |
| 74 | + |
| 75 | +Deregister a previously registered hotplug callback function. Not currently supported on any platform. |
| 76 | + |
| 77 | +#### Parameters |
| 78 | +* `deviceName` The device to deregister for: DEV_SDCARD or DEV_USB. |
| 79 | + |
| 80 | +#### Returns |
| 81 | +On success: 0. On failure: -1 with an error code in the errno variable. |
| 82 | + |
| 83 | +#### `public int ` [`mkfs`](#_arduino___p_o_s_i_x_storage_8h_1a834ae6d0e65c5b47f9d8932f7ad0c499)`(const enum ` [`StorageDevices`](#_arduino___p_o_s_i_x_storage_8h_1a97a26676f4f644e3db23bb63b9227546)` deviceName, const enum ` [`FileSystems`](#_arduino___p_o_s_i_x_storage_8h_1ac01996562b852a6b36ad87908429ad35)` fileSystem)` <a id="_arduino___p_o_s_i_x_storage_8h_1a834ae6d0e65c5b47f9d8932f7ad0c499" class="anchor"></a> |
| 84 | + |
| 85 | +Format a device (make file system). |
| 86 | + |
| 87 | +#### Parameters |
| 88 | +* `deviceName` The device to format: DEV_SDCARD or DEV_USB. |
| 89 | + |
| 90 | +* `fileSystem` The file system type to format: FS_FAT or FS_LITTLEFS. FS_FAT is probably the better choice for both SD Cards and USB thumb drives in most cases. |
| 91 | + |
| 92 | +#### Returns |
| 93 | +On success: 0. On failure: -1 with an error code in the errno variable. |
| 94 | + |
| 95 | +Generated by [Moxygen](https://github.com/sourcey/moxygen) |
0 commit comments