2014-11-27 15:30:33 -05:00
|
|
|
/*
|
|
|
|
* This file is part of the Micro Python project, http://micropython.org/
|
|
|
|
*
|
|
|
|
* The MIT License (MIT)
|
|
|
|
*
|
|
|
|
* Copyright (c) 2014 Damien P. George
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// qstrs specific to this port
|
|
|
|
|
|
|
|
Q(help)
|
|
|
|
|
|
|
|
// pyb module
|
|
|
|
Q(pyb)
|
|
|
|
Q(info)
|
|
|
|
Q(freq)
|
|
|
|
Q(millis)
|
|
|
|
Q(elapsed_millis)
|
|
|
|
Q(micros)
|
|
|
|
Q(elapsed_micros)
|
|
|
|
Q(delay)
|
|
|
|
Q(udelay)
|
|
|
|
Q(sync)
|
2015-01-17 17:37:22 -05:00
|
|
|
Q(hard_reset)
|
2015-05-15 06:00:39 -04:00
|
|
|
Q(unique_id)
|
2015-01-22 17:34:16 -05:00
|
|
|
|
2015-05-18 12:35:25 -04:00
|
|
|
// uos module
|
|
|
|
Q(uos)
|
|
|
|
Q(os)
|
|
|
|
Q(uname)
|
|
|
|
Q(sysname)
|
|
|
|
Q(nodename)
|
|
|
|
Q(release)
|
|
|
|
Q(version)
|
|
|
|
Q(machine)
|
|
|
|
|
2015-01-22 17:34:16 -05:00
|
|
|
Q(esp)
|
2015-05-02 15:24:25 -04:00
|
|
|
Q(socket)
|
2016-03-23 10:25:55 -04:00
|
|
|
Q(usocket)
|
2015-01-31 18:36:28 -05:00
|
|
|
Q(connect)
|
2015-02-02 19:02:14 -05:00
|
|
|
Q(disconnect)
|
2015-06-10 15:14:10 -04:00
|
|
|
Q(wifi_mode)
|
2015-05-15 06:00:39 -04:00
|
|
|
Q(phy_mode)
|
|
|
|
Q(sleep_type)
|
|
|
|
Q(deepsleep)
|
|
|
|
Q(adc)
|
|
|
|
Q(vdd33)
|
|
|
|
Q(chip_id)
|
|
|
|
Q(flash_id)
|
2015-11-24 16:28:20 -05:00
|
|
|
Q(flash_read)
|
2016-02-08 04:42:24 -05:00
|
|
|
Q(flash_write)
|
|
|
|
Q(flash_erase)
|
2015-05-15 06:00:39 -04:00
|
|
|
Q(sdk_version)
|
2015-05-02 15:24:25 -04:00
|
|
|
Q(getaddrinfo)
|
|
|
|
Q(send)
|
|
|
|
Q(sendto)
|
|
|
|
Q(recv)
|
|
|
|
Q(recvfrom)
|
|
|
|
Q(listen)
|
|
|
|
Q(accept)
|
|
|
|
Q(bind)
|
|
|
|
Q(settimeout)
|
|
|
|
Q(setblocking)
|
|
|
|
Q(setsockopt)
|
|
|
|
Q(close)
|
|
|
|
Q(protocol)
|
2015-05-15 06:00:39 -04:00
|
|
|
Q(getpeername)
|
2015-05-02 15:24:25 -04:00
|
|
|
Q(onconnect)
|
|
|
|
Q(onrecv)
|
2015-05-05 18:17:04 -04:00
|
|
|
Q(onsent)
|
2015-05-02 15:24:25 -04:00
|
|
|
Q(ondisconnect)
|
2016-02-11 08:19:11 -05:00
|
|
|
Q(neopixel_write)
|
2015-05-15 06:00:39 -04:00
|
|
|
Q(MODE_11B)
|
|
|
|
Q(MODE_11G)
|
|
|
|
Q(MODE_11N)
|
|
|
|
Q(SLEEP_NONE)
|
|
|
|
Q(SLEEP_LIGHT)
|
|
|
|
Q(SLEEP_MODEM)
|
2015-06-10 15:14:10 -04:00
|
|
|
Q(STA_MODE)
|
|
|
|
Q(AP_MODE)
|
|
|
|
Q(STA_AP_MODE)
|
2015-02-13 17:21:44 -05:00
|
|
|
|
2015-06-12 10:16:52 -04:00
|
|
|
// network module
|
|
|
|
Q(network)
|
|
|
|
Q(WLAN)
|
2016-02-19 11:44:13 -05:00
|
|
|
Q(active)
|
2015-06-18 08:54:29 -04:00
|
|
|
Q(scan)
|
|
|
|
Q(status)
|
2015-06-22 16:22:17 -04:00
|
|
|
Q(isconnected)
|
2015-12-27 03:03:32 -05:00
|
|
|
Q(mac)
|
2016-02-19 12:50:36 -05:00
|
|
|
Q(config)
|
2015-12-22 09:28:53 -05:00
|
|
|
Q(ifconfig)
|
2016-02-19 18:38:17 -05:00
|
|
|
Q(STA_IF)
|
|
|
|
Q(AP_IF)
|
2015-06-18 08:54:29 -04:00
|
|
|
Q(STAT_IDLE)
|
|
|
|
Q(STAT_CONNECTING)
|
|
|
|
Q(STAT_WRONG_PASSWORD)
|
|
|
|
Q(STAT_NO_AP_FOUND)
|
|
|
|
Q(STAT_CONNECT_FAIL)
|
|
|
|
Q(STAT_GOT_IP)
|
2016-02-19 12:50:36 -05:00
|
|
|
// config keys
|
|
|
|
Q(essid)
|
2015-06-12 10:16:52 -04:00
|
|
|
|
2015-02-13 17:21:44 -05:00
|
|
|
// Pin class
|
|
|
|
Q(Pin)
|
|
|
|
Q(init)
|
|
|
|
Q(mode)
|
|
|
|
Q(pull)
|
|
|
|
Q(value)
|
|
|
|
Q(low)
|
|
|
|
Q(high)
|
|
|
|
Q(IN)
|
2015-12-28 12:42:20 -05:00
|
|
|
Q(OUT)
|
|
|
|
Q(OPEN_DRAIN)
|
2015-02-13 17:21:44 -05:00
|
|
|
Q(PULL_NONE)
|
|
|
|
Q(PULL_UP)
|
|
|
|
Q(PULL_DOWN)
|
2015-05-11 15:11:37 -04:00
|
|
|
|
2016-03-02 08:37:27 -05:00
|
|
|
// PWM class
|
|
|
|
Q(PWM)
|
|
|
|
Q(init)
|
|
|
|
Q(deinit)
|
|
|
|
Q(freq)
|
|
|
|
Q(duty)
|
|
|
|
|
2015-05-11 15:11:37 -04:00
|
|
|
// RTC
|
|
|
|
Q(RTC)
|
|
|
|
Q(datetime)
|
|
|
|
Q(memory)
|
|
|
|
|
2015-05-18 12:35:56 -04:00
|
|
|
// ADC
|
|
|
|
Q(ADC)
|
|
|
|
Q(read)
|
|
|
|
|
2016-02-11 07:43:41 -05:00
|
|
|
// I2C
|
|
|
|
Q(I2C)
|
|
|
|
Q(init)
|
|
|
|
Q(scl)
|
|
|
|
Q(sda)
|
|
|
|
Q(freq)
|
2016-03-14 07:56:23 -04:00
|
|
|
Q(readfrom)
|
2016-02-11 07:43:41 -05:00
|
|
|
Q(writeto)
|
|
|
|
Q(stop)
|
|
|
|
Q(buf)
|
|
|
|
Q(addr)
|
2016-03-14 07:56:23 -04:00
|
|
|
Q(n)
|
2016-02-11 07:43:41 -05:00
|
|
|
|
2016-03-01 17:53:23 -05:00
|
|
|
// SPI
|
|
|
|
Q(SPI)
|
|
|
|
Q(init)
|
|
|
|
Q(baudrate)
|
|
|
|
Q(phase)
|
|
|
|
Q(polarity)
|
|
|
|
Q(sck)
|
|
|
|
Q(mosi)
|
|
|
|
Q(miso)
|
|
|
|
Q(read)
|
|
|
|
Q(readinto)
|
|
|
|
Q(write)
|
|
|
|
Q(write_readinto)
|
|
|
|
|
2015-05-11 15:11:37 -04:00
|
|
|
// utime
|
|
|
|
Q(utime)
|
|
|
|
Q(localtime)
|
|
|
|
Q(mktime)
|
|
|
|
Q(sleep)
|
2015-12-28 12:28:16 -05:00
|
|
|
Q(sleep_ms)
|
|
|
|
Q(sleep_us)
|
|
|
|
Q(ticks_ms)
|
|
|
|
Q(ticks_us)
|
|
|
|
Q(ticks_cpu)
|
|
|
|
Q(ticks_diff)
|
2015-05-11 15:11:37 -04:00
|
|
|
Q(time)
|
2016-01-05 14:23:23 -05:00
|
|
|
|
|
|
|
// machine
|
|
|
|
Q(Timer)
|
|
|
|
Q(callback)
|
|
|
|
Q(deinit)
|
|
|
|
Q(init)
|
|
|
|
Q(mode)
|
|
|
|
Q(period)
|
2016-03-04 15:26:59 -05:00
|
|
|
Q(ONE_SHOT)
|
|
|
|
Q(PERIODIC)
|
2016-02-11 06:36:19 -05:00
|
|
|
|
2015-12-28 19:20:34 -05:00
|
|
|
// onewire
|
|
|
|
Q(_onewire)
|
|
|
|
Q(onewire)
|
|
|
|
Q(timings)
|
|
|
|
Q(reset)
|
|
|
|
Q(readbit)
|
|
|
|
Q(readbyte)
|
|
|
|
Q(writebit)
|
|
|
|
Q(writebyte)
|
|
|
|
Q(crc8)
|
|
|
|
|
2016-02-11 06:36:19 -05:00
|
|
|
Q(json)
|