Home
last modified time | relevance | path

Searched refs:MP_ROM_INT (Results 1 – 25 of 70) sorted by relevance

123

/AliOS-Things-master/components/py_engine/modules/driver/
A Dgpio.c81 return MP_ROM_INT(-ENXIO); in obj_open()
119 return MP_ROM_INT(0); in obj_open()
128 return MP_ROM_INT(-EINVAL); in obj_close()
138 return MP_ROM_INT(-ENXIO); in obj_close()
148 return MP_ROM_INT(0); in obj_close()
168 return MP_ROM_INT(-ENXIO); in obj_read()
173 return MP_ROM_INT(level); in obj_read()
193 return MP_ROM_INT(-ENXIO); in obj_write()
204 return MP_ROM_INT(ret); in obj_write()
227 return MP_ROM_INT(ret); in obj_toggle()
[all …]
A Dpwm.c72 return MP_ROM_INT(ret); in obj_open()
88 return MP_ROM_INT(ret); in obj_open()
96 return MP_ROM_INT(ret); in obj_open()
112 return MP_ROM_INT(-MP_EINVAL); in obj_close()
125 return MP_ROM_INT(ret); in obj_close()
135 return MP_ROM_INT(-MP_EINVAL); in obj_setOption()
141 return MP_ROM_INT(-MP_EINVAL); in obj_setOption()
184 return MP_ROM_INT(ret); in obj_setOption()
195 return MP_ROM_INT(-MP_EINVAL); in obj_getOption()
201 return MP_ROM_INT(-MP_EINVAL); in obj_getOption()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmodmachine.c288 { MP_ROM_QSTR(MP_QSTR_SLEEP), MP_ROM_INT(MACHINE_WAKE_SLEEP) },
311 { MP_ROM_QSTR(MP_QSTR_HARD_RESET), MP_ROM_INT(MP_HARD_RESET) },
313 { MP_ROM_QSTR(MP_QSTR_WDT_RESET), MP_ROM_INT(MP_WDT_RESET) },
315 { MP_ROM_QSTR(MP_QSTR_SOFT_RESET), MP_ROM_INT(MP_SOFT_RESET) },
324 { MP_ROM_QSTR(MP_QSTR_ULP_WAKE), MP_ROM_INT(SLEEP_WAKEUP_ULP) },
327 { MP_ROM_QSTR(MP_QSTR_IDLE), MP_ROM_INT(PWR_MODE_ACTIVE) },
328 { MP_ROM_QSTR(MP_QSTR_SLEEP), MP_ROM_INT(PWR_MODE_LPDS) },
331 MP_ROM_INT(SLP_PWRON_RESET) }, // legacy constant
333 { MP_ROM_QSTR(MP_QSTR_HARD_RESET), MP_ROM_INT(SLP_HARD_RESET) },
334 { MP_ROM_QSTR(MP_QSTR_WDT_RESET), MP_ROM_INT(SLP_WDT_RESET) },
[all …]
A Dmachine_adc.c153 { MP_ROM_QSTR(MP_QSTR_WIDTH_9BIT), MP_ROM_INT(ADC_WIDTH_9Bit) },
154 { MP_ROM_QSTR(MP_QSTR_WIDTH_10BIT), MP_ROM_INT(ADC_WIDTH_10Bit) },
155 { MP_ROM_QSTR(MP_QSTR_WIDTH_11BIT), MP_ROM_INT(ADC_WIDTH_11Bit) },
156 { MP_ROM_QSTR(MP_QSTR_WIDTH_12BIT), MP_ROM_INT(ADC_WIDTH_12Bit) },
157 { MP_ROM_QSTR(MP_QSTR_WIDTH_13BIT), MP_ROM_INT(ADC_WIDTH_13Bit) },
A Dmachine_pin.c346 { MP_ROM_QSTR(MP_QSTR_IN), MP_ROM_INT(GPIO_INPUT) },
347 { MP_ROM_QSTR(MP_QSTR_OUT), MP_ROM_INT(GPIO_OUTPUT_PP) },
348 { MP_ROM_QSTR(MP_QSTR_OPEN_DRAIN), MP_ROM_INT(GPIO_OUTPUT_OD) },
349 { MP_ROM_QSTR(MP_QSTR_PULL_UP), MP_ROM_INT(GPIO_PULL_UP) },
350 { MP_ROM_QSTR(MP_QSTR_PULL_DOWN), MP_ROM_INT(GPIO_PULL_DOWN) },
351 { MP_ROM_QSTR(MP_QSTR_PULL_HOLD), MP_ROM_INT(GPIO_PULL_HOLD) },
352 { MP_ROM_QSTR(MP_QSTR_IRQ_RISING), MP_ROM_INT(IRQ_TRIGGER_RISING_EDGE) },
353 { MP_ROM_QSTR(MP_QSTR_IRQ_FALLING), MP_ROM_INT(IRQ_TRIGGER_FALLING_EDGE) },
354 { MP_ROM_QSTR(MP_QSTR_WAKE_LOW), MP_ROM_INT(GPIO_PIN_INTR_LOLEVEL) },
355 { MP_ROM_QSTR(MP_QSTR_WAKE_HIGH), MP_ROM_INT(GPIO_PIN_INTR_HILEVEL) },
A Dmodbattery.c57 return MP_ROM_INT(state); in obj_getConnectState()
78 return MP_ROM_INT(voltage); in obj_getVoltage()
99 return MP_ROM_INT(level); in obj_getLevel()
120 return MP_ROM_INT(temperature); in obj_getTemperature()
A Dmodcharger.c58 return MP_ROM_INT(state); in obj_getConnectState()
80 return MP_ROM_INT(ret); in obj_getState()
101 return MP_ROM_INT(current); in obj_getCurrent()
123 return MP_ROM_INT(ret); in obj_switch()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmodmachine.c261 { MP_ROM_QSTR(MP_QSTR_SLEEP), MP_ROM_INT(MACHINE_WAKE_SLEEP) },
284 { MP_ROM_QSTR(MP_QSTR_HARD_RESET), MP_ROM_INT(MP_HARD_RESET) },
286 { MP_ROM_QSTR(MP_QSTR_WDT_RESET), MP_ROM_INT(MP_WDT_RESET) },
288 { MP_ROM_QSTR(MP_QSTR_SOFT_RESET), MP_ROM_INT(MP_SOFT_RESET) },
297 { MP_ROM_QSTR(MP_QSTR_ULP_WAKE), MP_ROM_INT(SLEEP_WAKEUP_ULP) },
300 { MP_ROM_QSTR(MP_QSTR_IDLE), MP_ROM_INT(PWR_MODE_ACTIVE) },
301 { MP_ROM_QSTR(MP_QSTR_SLEEP), MP_ROM_INT(PWR_MODE_LPDS) },
305 { MP_ROM_QSTR(MP_QSTR_HARD_RESET), MP_ROM_INT(SLP_HARD_RESET) },
306 { MP_ROM_QSTR(MP_QSTR_WDT_RESET), MP_ROM_INT(SLP_WDT_RESET) },
308 { MP_ROM_QSTR(MP_QSTR_SOFT_RESET), MP_ROM_INT(SLP_SOFT_RESET) },
[all …]
A Dmachine_adc.c155 { MP_ROM_QSTR(MP_QSTR_WIDTH_9BIT), MP_ROM_INT(ADC_WIDTH_9Bit) },
156 { MP_ROM_QSTR(MP_QSTR_WIDTH_10BIT), MP_ROM_INT(ADC_WIDTH_10Bit) },
157 { MP_ROM_QSTR(MP_QSTR_WIDTH_11BIT), MP_ROM_INT(ADC_WIDTH_11Bit) },
158 { MP_ROM_QSTR(MP_QSTR_WIDTH_12BIT), MP_ROM_INT(ADC_WIDTH_12Bit) },
159 { MP_ROM_QSTR(MP_QSTR_WIDTH_13BIT), MP_ROM_INT(ADC_WIDTH_13Bit) },
A Dmachine_pin.c322 { MP_ROM_QSTR(MP_QSTR_IN), MP_ROM_INT(GPIO_INPUT) },
323 { MP_ROM_QSTR(MP_QSTR_OUT), MP_ROM_INT(GPIO_OUTPUT_PP) },
324 { MP_ROM_QSTR(MP_QSTR_OPEN_DRAIN), MP_ROM_INT(GPIO_OUTPUT_OD) },
325 { MP_ROM_QSTR(MP_QSTR_PULL_UP), MP_ROM_INT(GPIO_PULL_UP) },
326 { MP_ROM_QSTR(MP_QSTR_PULL_DOWN), MP_ROM_INT(GPIO_PULL_DOWN) },
327 { MP_ROM_QSTR(MP_QSTR_PULL_HOLD), MP_ROM_INT(GPIO_PULL_HOLD) },
328 { MP_ROM_QSTR(MP_QSTR_IRQ_RISING), MP_ROM_INT(IRQ_TRIGGER_RISING_EDGE) },
329 { MP_ROM_QSTR(MP_QSTR_IRQ_FALLING), MP_ROM_INT(IRQ_TRIGGER_FALLING_EDGE) },
330 { MP_ROM_QSTR(MP_QSTR_WAKE_LOW), MP_ROM_INT(GPIO_PIN_INTR_LOLEVEL) },
331 { MP_ROM_QSTR(MP_QSTR_WAKE_HIGH), MP_ROM_INT(GPIO_PIN_INTR_HILEVEL) },
A Dmodbattery.c61 return MP_ROM_INT(state); in obj_getConnectState()
83 return MP_ROM_INT(voltage); in obj_getVoltage()
105 return MP_ROM_INT(level); in obj_getLevel()
127 return MP_ROM_INT(temperature); in obj_getTemperature()
A Dmodcharger.c62 return MP_ROM_INT(state); in obj_getConnectState()
85 return MP_ROM_INT(ret); in obj_getState()
107 return MP_ROM_INT(current); in obj_getCurrent()
130 return MP_ROM_INT(ret); in obj_switch()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmodmachine.c261 { MP_ROM_QSTR(MP_QSTR_SLEEP), MP_ROM_INT(MACHINE_WAKE_SLEEP) },
284 { MP_ROM_QSTR(MP_QSTR_HARD_RESET), MP_ROM_INT(MP_HARD_RESET) },
286 { MP_ROM_QSTR(MP_QSTR_WDT_RESET), MP_ROM_INT(MP_WDT_RESET) },
288 { MP_ROM_QSTR(MP_QSTR_SOFT_RESET), MP_ROM_INT(MP_SOFT_RESET) },
297 { MP_ROM_QSTR(MP_QSTR_ULP_WAKE), MP_ROM_INT(SLEEP_WAKEUP_ULP) },
300 { MP_ROM_QSTR(MP_QSTR_IDLE), MP_ROM_INT(PWR_MODE_ACTIVE) },
301 { MP_ROM_QSTR(MP_QSTR_SLEEP), MP_ROM_INT(PWR_MODE_LPDS) },
305 { MP_ROM_QSTR(MP_QSTR_HARD_RESET), MP_ROM_INT(SLP_HARD_RESET) },
306 { MP_ROM_QSTR(MP_QSTR_WDT_RESET), MP_ROM_INT(SLP_WDT_RESET) },
308 { MP_ROM_QSTR(MP_QSTR_SOFT_RESET), MP_ROM_INT(SLP_SOFT_RESET) },
[all …]
A Dmachine_adc.c155 { MP_ROM_QSTR(MP_QSTR_WIDTH_9BIT), MP_ROM_INT(ADC_WIDTH_9Bit) },
156 { MP_ROM_QSTR(MP_QSTR_WIDTH_10BIT), MP_ROM_INT(ADC_WIDTH_10Bit) },
157 { MP_ROM_QSTR(MP_QSTR_WIDTH_11BIT), MP_ROM_INT(ADC_WIDTH_11Bit) },
158 { MP_ROM_QSTR(MP_QSTR_WIDTH_12BIT), MP_ROM_INT(ADC_WIDTH_12Bit) },
159 { MP_ROM_QSTR(MP_QSTR_WIDTH_13BIT), MP_ROM_INT(ADC_WIDTH_13Bit) },
A Dmachine_pin.c322 { MP_ROM_QSTR(MP_QSTR_IN), MP_ROM_INT(GPIO_INPUT) },
323 { MP_ROM_QSTR(MP_QSTR_OUT), MP_ROM_INT(GPIO_OUTPUT_PP) },
324 { MP_ROM_QSTR(MP_QSTR_OPEN_DRAIN), MP_ROM_INT(GPIO_OUTPUT_OD) },
325 { MP_ROM_QSTR(MP_QSTR_PULL_UP), MP_ROM_INT(GPIO_PULL_UP) },
326 { MP_ROM_QSTR(MP_QSTR_PULL_DOWN), MP_ROM_INT(GPIO_PULL_DOWN) },
327 { MP_ROM_QSTR(MP_QSTR_PULL_HOLD), MP_ROM_INT(GPIO_PULL_HOLD) },
328 { MP_ROM_QSTR(MP_QSTR_IRQ_RISING), MP_ROM_INT(IRQ_TRIGGER_RISING_EDGE) },
329 { MP_ROM_QSTR(MP_QSTR_IRQ_FALLING), MP_ROM_INT(IRQ_TRIGGER_FALLING_EDGE) },
330 { MP_ROM_QSTR(MP_QSTR_WAKE_LOW), MP_ROM_INT(GPIO_PIN_INTR_LOLEVEL) },
331 { MP_ROM_QSTR(MP_QSTR_WAKE_HIGH), MP_ROM_INT(GPIO_PIN_INTR_HILEVEL) },
A Dmodbattery.c61 return MP_ROM_INT(state); in obj_getConnectState()
83 return MP_ROM_INT(voltage); in obj_getVoltage()
105 return MP_ROM_INT(level); in obj_getLevel()
127 return MP_ROM_INT(temperature); in obj_getTemperature()
/AliOS-Things-master/components/py_engine/modules/kv/
A Dmodkv.c27 return MP_ROM_INT(-EINVAL); in obj_setStorageSync()
40 return MP_ROM_INT(ret); in obj_setStorageSync()
54 return MP_ROM_INT(-EINVAL); in obj_getStorageSync()
61 return MP_ROM_INT(-ENOMEM); in obj_getStorageSync()
67 return MP_ROM_INT(ret); in obj_getStorageSync()
88 return MP_ROM_INT(-EINVAL); in obj_removeStorageSync()
97 return MP_ROM_INT(ret); in obj_removeStorageSync()
101 return MP_ROM_INT(ret); in obj_removeStorageSync()
/AliOS-Things-master/components/py_engine/modules/minicv/
A Ddatainput.c212 return MP_ROM_INT(&ret); in obj_checkDataReady()
298 MP_ROM_INT(DATA_INPUT_SOURCE_NONE)},
300 MP_ROM_INT(DATA_INPUT_SOURCE_IMAGE_BMP)},
302 MP_ROM_INT(DATA_INPUT_SOURCE_IMAGE_GIF)},
304 MP_ROM_INT(DATA_INPUT_SOURCE_IMAGE_PNG)},
306 MP_ROM_INT(DATA_INPUT_SOURCE_IMAGE_JPG)},
308 MP_ROM_INT(DATA_INPUT_SOURCE_VIDEO_FILE)},
310 MP_ROM_INT(DATA_INPUT_SOURCE_VIDEO_RTMP)},
312 MP_ROM_INT(DATA_INPUT_SOURCE_VIDEO_RTSP)},
318 MP_ROM_INT(DATA_INPUT_SOURCE_CAMERA_IP)},
[all …]
A Dui.c149 return MP_ROM_INT(ret); in obj_getDisplayWidth()
180 return MP_ROM_INT(ret); in obj_getDisplayHeight()
211 return MP_ROM_INT(ret); in obj_getDisplayBacklight()
243 return MP_ROM_INT(ret); in obj_setDisplayBacklight()
274 return MP_ROM_INT(ret); in obj_getDisplayType()
305 return MP_ROM_INT(ret); in obj_getDisplayFreq()
337 return MP_ROM_INT(ret); in obj_setDisplayFreq()
374 return MP_ROM_INT(ret); in obj_drawPoint()
416 return MP_ROM_INT(ret); in obj_drawLine()
452 return MP_ROM_INT(ret); in obj_drawRectangle()
[all …]
A Dvideocodec.c86 return MP_ROM_INT(ret); in obj_open()
152 return MP_ROM_INT(ret); in obj_decodeConfig()
183 return MP_ROM_INT(ret); in obj_startDecode()
214 return MP_ROM_INT(ret); in obj_stopDecode()
280 return MP_ROM_INT(ret); in obj_encodeConfig()
311 return MP_ROM_INT(ret); in obj_startEncode()
342 return MP_ROM_INT(ret); in obj_stopEncode()
381 {MP_OBJ_NEW_QSTR(MP_QSTR_VIDEO_CODEC_NONE), MP_ROM_INT(VIDEO_CODEC_NONE)},
382 {MP_OBJ_NEW_QSTR(MP_QSTR_VIDEO_CODEC_FFMPEG), MP_ROM_INT(VIDEO_CODEC_FFMPEG)},
383 {MP_OBJ_NEW_QSTR(MP_QSTR_VIDEO_CODEC_HAL), MP_ROM_INT(VIDEO_CODEC_HAL)},
[all …]
A Dimageproc.c87 return MP_ROM_INT(ret); in obj_open()
156 return MP_ROM_INT(ret); in obj_cvtColor()
196 return MP_ROM_INT(ret); in obj_resize()
231 return MP_ROM_INT(ret); in obj_imgCopy()
269 return MP_ROM_INT(ret); in obj_rectangle()
306 return MP_ROM_INT(ret); in obj_circle()
346 return MP_ROM_INT(ret); in obj_drawMarker()
387 return MP_ROM_INT(ret); in obj_fillPoly()
424 return MP_ROM_INT(ret); in obj_putText()
461 return MP_ROM_INT(ret); in obj_dilateErode()
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmoductypes.c661 { MP_ROM_QSTR(MP_QSTR_NATIVE), MP_ROM_INT(LAYOUT_NATIVE) },
662 { MP_ROM_QSTR(MP_QSTR_LITTLE_ENDIAN), MP_ROM_INT(LAYOUT_LITTLE_ENDIAN) },
663 { MP_ROM_QSTR(MP_QSTR_BIG_ENDIAN), MP_ROM_INT(LAYOUT_BIG_ENDIAN) },
665 { MP_ROM_QSTR(MP_QSTR_VOID), MP_ROM_INT(TYPE2SMALLINT(UINT8, VAL_TYPE_BITS)) },
668 { MP_ROM_QSTR(MP_QSTR_INT8), MP_ROM_INT(TYPE2SMALLINT(INT8, VAL_TYPE_BITS)) },
683 { MP_ROM_QSTR(MP_QSTR_BF_POS), MP_ROM_INT(OFFSET_BITS) },
684 { MP_ROM_QSTR(MP_QSTR_BF_LEN), MP_ROM_INT(LEN_BITS) },
699 { MP_ROM_QSTR(MP_QSTR_INT), MP_ROM_INT(TYPE2SMALLINT(INT32, VAL_TYPE_BITS)) },
703 { MP_ROM_QSTR(MP_QSTR_LONG), MP_ROM_INT(TYPE2SMALLINT(INT32, VAL_TYPE_BITS)) },
706 { MP_ROM_QSTR(MP_QSTR_LONG), MP_ROM_INT(TYPE2SMALLINT(INT64, VAL_TYPE_BITS)) },
[all …]
/AliOS-Things-master/components/py_engine/modules/network/
A Dmodnetwork.c725 { MP_ROM_QSTR(MP_QSTR_STA_IF), MP_ROM_INT(NETMGR_WIFI_MODE_STA) },
726 { MP_ROM_QSTR(MP_QSTR_AP_IF), MP_ROM_INT(NETMGR_WIFI_MODE_AP) },
729 { MP_ROM_QSTR(MP_QSTR_MODE_11B), MP_ROM_INT(WIFI_PROTOCOL_11B) },
730 { MP_ROM_QSTR(MP_QSTR_MODE_11G), MP_ROM_INT(WIFI_PROTOCOL_11G) },
731 { MP_ROM_QSTR(MP_QSTR_MODE_11N), MP_ROM_INT(WIFI_PROTOCOL_11N) },
733 { MP_ROM_QSTR(MP_QSTR_AUTH_OPEN), MP_ROM_INT(WIFI_AUTH_OPEN) },
734 { MP_ROM_QSTR(MP_QSTR_AUTH_WEP), MP_ROM_INT(WIFI_AUTH_WEP) },
735 { MP_ROM_QSTR(MP_QSTR_AUTH_WPA_PSK), MP_ROM_INT(WIFI_AUTH_WPA_PSK) },
739 { MP_ROM_QSTR(MP_QSTR_AUTH_MAX), MP_ROM_INT(WIFI_AUTH_MAX) },
741 { MP_ROM_QSTR(MP_QSTR_STAT_IDLE), MP_ROM_INT(STAT_IDLE)},
[all …]
/AliOS-Things-master/components/py_engine/modules/netmgr/
A Dmodnetmgr.c342 { MP_ROM_QSTR(MP_QSTR_NET_AP_DISCONNECTING), MP_ROM_INT(CONN_STATE_DISCONNECTING) },
343 { MP_ROM_QSTR(MP_QSTR_NET_AP_DISCONNECTED), MP_ROM_INT(CONN_STATE_DISCONNECTED) },
344 { MP_ROM_QSTR(MP_QSTR_NET_AP_CONNECTING), MP_ROM_INT(CONN_STATE_CONNECTING) },
345 { MP_ROM_QSTR(MP_QSTR_NET_AP_CONNECTED), MP_ROM_INT(CONN_STATE_CONNECTED) },
346 { MP_ROM_QSTR(MP_QSTR_NET_IP_OBTAINING), MP_ROM_INT(CONN_STATE_OBTAINING_IP) },
347 { MP_ROM_QSTR(MP_QSTR_NET_IP_OBTAINED), MP_ROM_INT(CONN_STATE_NETWORK_CONNECTED) },
348 { MP_ROM_QSTR(MP_QSTR_NET_FAILED), MP_ROM_INT(CONN_STATE_FAILED) },
351 { MP_ROM_QSTR(MP_QSTR_NET_TYPE_WIFI), MP_ROM_INT(AOS_NETWORK_WIFI) },
352 { MP_ROM_QSTR(MP_QSTR_NET_TYPE_CELLULAR), MP_ROM_INT(AOS_NETWORK_CELLULAR) },
353 { MP_ROM_QSTR(MP_QSTR_NET_TYPE_ETH), MP_ROM_INT(AOS_NETWORK_ETHERNET) },
/AliOS-Things-master/components/py_engine/modules/ulog/
A Dmodlog.c181 { MP_OBJ_NEW_QSTR(MP_QSTR_LOG_DEBUG), MP_ROM_INT(AOS_LL_DEBUG) },
182 { MP_OBJ_NEW_QSTR(MP_QSTR_LOG_INFO), MP_ROM_INT(AOS_LL_INFO) },
183 { MP_OBJ_NEW_QSTR(MP_QSTR_LOG_WARN), MP_ROM_INT(AOS_LL_WARN) },
184 { MP_OBJ_NEW_QSTR(MP_QSTR_LOG_ERROR), MP_ROM_INT(AOS_LL_ERROR) },
185 { MP_OBJ_NEW_QSTR(MP_QSTR_LOG_FATAL), MP_ROM_INT(AOS_LL_FATAL) },

Completed in 30 milliseconds

123