DevI2C wrappers for Javascript.
Dependents: ST_SENSOR_JS MQTT_JS
DevI2C-js.h@0:948fd0e96aaa, 2017-10-25 (annotated)
- Committer:
- akhtar.syedzeeshan@gmail.com
- Date:
- Wed Oct 25 13:45:51 2017 +0200
- Revision:
- 0:948fd0e96aaa
- Child:
- 1:9004b187e772
Implemented DevI2C for Javascript
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 1 | /* Copyright JS Foundation and other contributors, http://js.foundation |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 2 | * |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 4 | * you may not use this file except in compliance with the License. |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 5 | * You may obtain a copy of the License at |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 6 | * |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 8 | * |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 9 | * Unless required by applicable law or agreed to in writing, software |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 10 | * distributed under the License is distributed on an "AS IS" BASIS |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 12 | * See the License for the specific language governing permissions and |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 13 | * limitations under the License. |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 14 | */ |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 15 | #ifndef _DEVI2C_JS_H |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 16 | #define _DEVI2C_JS_H |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 17 | |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 18 | #include "jerryscript-mbed-library-registry/wrap_tools.h" |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 19 | |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 20 | DECLARE_CLASS_CONSTRUCTOR(DevI2C); |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 21 | |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 22 | // Define a wrapper, we can load the wrapper in `main.cpp`. |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 23 | // This makes it possible to load libraries optionally. |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 24 | DECLARE_JS_WRAPPER_REGISTRATION (DevI2C_JS_library) { |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 25 | REGISTER_CLASS_CONSTRUCTOR(DevI2C); |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 26 | } |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 27 | |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 28 | |
akhtar.syedzeeshan@gmail.com | 0:948fd0e96aaa | 29 | #endif // _DEVI2C_H |