Searched refs:native_ptr (Results 1 – 5 of 5) sorted by relevance
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/ |
D | InterruptIn-js.cpp | 27 InterruptIn *native_ptr = static_cast<InterruptIn*>(void_ptr); in NAME_FOR_CLASS_NATIVE_DESTRUCTOR() local 29 native_ptr->rise(0); in NAME_FOR_CLASS_NATIVE_DESTRUCTOR() 30 native_ptr->fall(0); in NAME_FOR_CLASS_NATIVE_DESTRUCTOR() 31 delete native_ptr; in NAME_FOR_CLASS_NATIVE_DESTRUCTOR() 63 InterruptIn *native_ptr = static_cast<InterruptIn*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 76 native_ptr->rise(0); in DECLARE_CLASS_FUNCTION() 92 InterruptIn *native_ptr = static_cast<InterruptIn*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 98 native_ptr->rise(cb); in DECLARE_CLASS_FUNCTION() 128 InterruptIn *native_ptr = static_cast<InterruptIn*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 141 native_ptr->fall(0); in DECLARE_CLASS_FUNCTION() [all …]
|
D | PwmOut-js.cpp | 62 PwmOut* native_ptr = static_cast<PwmOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 65 native_ptr->write(static_cast<float>(arg0)); in DECLARE_CLASS_FUNCTION() 95 PwmOut* native_ptr = static_cast<PwmOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 97 float result = native_ptr->read(); in DECLARE_CLASS_FUNCTION() 123 PwmOut* native_ptr = static_cast<PwmOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 126 native_ptr->period(static_cast<float>(arg0)); in DECLARE_CLASS_FUNCTION() 149 PwmOut* native_ptr = static_cast<PwmOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 152 native_ptr->period_ms(static_cast<int>(arg0)); in DECLARE_CLASS_FUNCTION() 175 PwmOut* native_ptr = static_cast<PwmOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 178 native_ptr->period_us(static_cast<int>(arg0)); in DECLARE_CLASS_FUNCTION() [all …]
|
D | I2C-js.cpp | 59 I2C *native_ptr = static_cast<I2C*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 62 native_ptr->frequency(hz); in DECLARE_CLASS_FUNCTION() 101 I2C *native_ptr = static_cast<I2C*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 104 int result = native_ptr->read(data); in DECLARE_CLASS_FUNCTION() 122 I2C *native_ptr = static_cast<I2C*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 136 int result = native_ptr->read(address, data, length, repeated); in DECLARE_CLASS_FUNCTION() 196 I2C *native_ptr = static_cast<I2C*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 201 int result = native_ptr->write(data); in DECLARE_CLASS_FUNCTION() 219 I2C *native_ptr = static_cast<I2C*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 233 int result = native_ptr->write(address, data, length, repeated); in DECLARE_CLASS_FUNCTION() [all …]
|
D | DigitalOut-js.cpp | 60 DigitalOut* native_ptr = static_cast<DigitalOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 63 native_ptr->write(arg0); in DECLARE_CLASS_FUNCTION() 87 DigitalOut* native_ptr = static_cast<DigitalOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 89 int result = native_ptr->read(); in DECLARE_CLASS_FUNCTION() 111 DigitalOut* native_ptr = static_cast<DigitalOut*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 113 int result = native_ptr->is_connected(); in DECLARE_CLASS_FUNCTION() 129 DigitalOut* native_ptr; in DECLARE_CLASS_CONSTRUCTOR() local 137 native_ptr = new DigitalOut(pin_name); in DECLARE_CLASS_CONSTRUCTOR() 141 native_ptr = new DigitalOut(pin_name, value); in DECLARE_CLASS_CONSTRUCTOR() 147 jerry_set_object_native_pointer(js_object, native_ptr, &native_obj_type_info); in DECLARE_CLASS_CONSTRUCTOR()
|
D | AnalogIn-js.cpp | 57 AnalogIn* native_ptr = static_cast<AnalogIn*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 59 float result = native_ptr->read(); in DECLARE_CLASS_FUNCTION() 82 AnalogIn* native_ptr = static_cast<AnalogIn*>(void_ptr); in DECLARE_CLASS_FUNCTION() local 84 uint16_t result = native_ptr->read_u16(); in DECLARE_CLASS_FUNCTION() 101 AnalogIn* native_ptr = new AnalogIn(pin_name); in DECLARE_CLASS_CONSTRUCTOR() local 105 jerry_set_object_native_pointer(js_object, native_ptr, &native_obj_type_info); in DECLARE_CLASS_CONSTRUCTOR()
|