shims
This commit is contained in:
parent
e8468ab62c
commit
e65b16474e
6
libs/base/shims.d.ts
vendored
6
libs/base/shims.d.ts
vendored
@ -10,6 +10,12 @@ declare interface Buffer {
|
|||||||
//% shim=BufferMethods::getUint8
|
//% shim=BufferMethods::getUint8
|
||||||
getUint8(off: int32): int32;
|
getUint8(off: int32): int32;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns false when the buffer can be written to.
|
||||||
|
*/
|
||||||
|
//% shim=BufferMethods::isReadOnly
|
||||||
|
isReadOnly(): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes an unsigned byte at a particular location
|
* Writes an unsigned byte at a particular location
|
||||||
*/
|
*/
|
||||||
|
7
libs/core/shims.d.ts
vendored
7
libs/core/shims.d.ts
vendored
@ -65,6 +65,13 @@ declare namespace control {
|
|||||||
//% help=control/allocate-notify-event shim=control::allocateNotifyEvent
|
//% help=control/allocate-notify-event shim=control::allocateNotifyEvent
|
||||||
function allocateNotifyEvent(): int32;
|
function allocateNotifyEvent(): int32;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine the version of system software currently running.
|
||||||
|
*/
|
||||||
|
//% blockId="control_device_dal_version" block="device dal version"
|
||||||
|
//% help=control/device-dal-version shim=control::deviceDalVersion
|
||||||
|
function deviceDalVersion(): string;
|
||||||
|
|
||||||
/** Write data to DMESG debugging buffer. */
|
/** Write data to DMESG debugging buffer. */
|
||||||
//% shim=control::dmesg
|
//% shim=control::dmesg
|
||||||
function dmesg(s: string): void;
|
function dmesg(s: string): void;
|
||||||
|
Loading…
Reference in New Issue
Block a user