JS: Add extra SDK feature strings

This commit is contained in:
Willy-JL
2024-11-02 04:34:23 +00:00
parent 48aceffe9b
commit 67d9f5b44a
11 changed files with 92 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
/**
* I2C bus communication
* @version Available with JS feature `i2c`
* @module
*/
/**
* @brief Check if there is an I2C device ready on the bus
* @param address The device address to check

View File

@@ -1,3 +1,9 @@
/**
* SPI bus communication
* @version Available with JS feature `spi`
* @module
*/
/**
* @brief Acquire SPI bus
*/

View File

@@ -298,15 +298,18 @@ export declare function isSubpathOf(parentPath: string, childPath: string): bool
* Initialize virtual mount api with disk image at given path.
* Errors on failure.
* @param parentPath Path to disk image file
* @version Available with JS feature `storage-virtual`
*/
export declare function virtualInit(path: string): void;
/**
* Mount selected disk image at /mnt path.
* Errors on failure.
* @version Available with JS feature `storage-virtual`
*/
export declare function virtualMount(): void;
/**
* Deinitialize virtual mount api.
* Errors on failure.
* @version Available with JS feature `storage-virtual`
*/
export declare function virtualQuit(): void;