@geastack/geatsc-plugin-gea 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,6 +61,7 @@ const geaGeolocationHostMethods = [
61
61
  'clearWatch',
62
62
  ];
63
63
  const geaInputHostMethods = ['consumeBackButton'];
64
+ const geaUartHostMethods = ['open', 'isOpen', 'close', 'read', 'write', 'available', 'writable'];
64
65
  const geaGpioHostMethods = ['configureOutput', 'configureInput', 'write', 'read'];
65
66
  const geaLedHostMethods = ['set', 'off', 'attach', 'setPixel', 'show', 'detach'];
66
67
  const geaClockHostMethods = ['epochMs', 'setEpochMs'];
@@ -139,6 +140,7 @@ const rawGeaHostExternDeclarations = Object.fromEntries([
139
140
  ...geaTouchHostMethods.map((method) => [`gea::host::touch.${method}`, geaHostDeclarations]),
140
141
  ...geaMemoryHostMethods.map((method) => [`gea::host::Memory.${method}`, geaHostDeclarations]),
141
142
  ...geaInputHostMethods.map((method) => [`gea::host::Input.${method}`, geaHostDeclarations]),
143
+ ...geaUartHostMethods.map((method) => [`gea::host::Uart.${method}`, geaHostDeclarations]),
142
144
  ...geaGpioHostMethods.map((method) => [`gea::host::Gpio.${method}`, geaHostDeclarations]),
143
145
  ...geaLedHostMethods.map((method) => [`gea::host::Led.${method}`, geaHostDeclarations]),
144
146
  ...geaClockHostMethods.map((method) => [`gea::host::Clock.${method}`, geaHostDeclarations]),
@@ -560,6 +560,7 @@ export function createGeaHostShims() {
560
560
  __gea_Display: "gea::host::Display",
561
561
  __gea_Memory: "gea::host::Memory",
562
562
  __gea_Input: "gea::host::Input",
563
+ __gea_Uart: "gea::host::Uart",
563
564
  __gea_Gpio: "gea::host::Gpio",
564
565
  __gea_Led: "gea::host::Led",
565
566
  __gea_Clock: "gea::host::Clock",
@@ -1297,6 +1298,15 @@ export function createGeaHostShims() {
1297
1298
  write: "gea::host::Gpio.write",
1298
1299
  read: "gea::host::Gpio.read",
1299
1300
  },
1301
+ __gea_Uart: {
1302
+ open: "gea::host::Uart.open",
1303
+ isOpen: "gea::host::Uart.isOpen",
1304
+ close: "gea::host::Uart.close",
1305
+ read: "gea::host::Uart.read",
1306
+ write: "gea::host::Uart.write",
1307
+ available: "gea::host::Uart.available",
1308
+ writable: "gea::host::Uart.writable",
1309
+ },
1300
1310
  __gea_Gpio: {
1301
1311
  configureOutput: "gea::host::Gpio.configureOutput",
1302
1312
  configureInput: "gea::host::Gpio.configureInput",
@@ -1382,6 +1392,7 @@ export function createGeaHostShims() {
1382
1392
  Input: ["consumeBackButton"],
1383
1393
  __gea_Input: ["consumeBackButton"],
1384
1394
  Gpio: ["configureOutput", "configureInput", "write", "read"],
1395
+ __gea_Uart: ["open", "isOpen", "close", "available", "writable"],
1385
1396
  __gea_Gpio: ["configureOutput", "configureInput", "write", "read"],
1386
1397
  Led: ["set", "off", "attach", "setPixel", "show", "detach"],
1387
1398
  __gea_Led: ["set", "off", "attach", "setPixel", "show", "detach"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geastack/geatsc-plugin-gea",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Gea IR backend plugin for geatsc.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {