micropython/docs/library
Radomir Dopieralski 219245e10f extmod/machine_i2c: Add support for the addrsize parameter in mem xfers.
The memory read/write I2C functions now take an optional keyword-only
parameter that specifies the number of bits in the memory address.
Only mem-addrs that are a multiple of 8-bits are supported (otherwise
the behaviour is undefined).

Due to the integer type used for the address, for values larger than 32
bits, only 32 bits of address will be sent, and the rest will be padded
with 0s. Right now no exception is raised when that happens. For values
smaller than 8, no address is sent. Also no exception then.

Tested with a VL6180 sensor, which has 16-bit register addresses.

Due to code refactoring, this patch reduces stmhal and esp8266 builds
by about 50 bytes.
2016-09-28 14:45:29 +10:00
..
array.rst docs/array: Document array module. 2016-08-07 00:13:48 +03:00
builtins.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
cmath.rst docs: math, cmath: Add port availability information. 2016-06-01 22:12:39 +03:00
esp.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
gc.rst docs: Cleanup and update some docs. 2014-10-31 22:21:37 +00:00
index.rst docs/library/index: Include array module in ToC. 2016-08-07 00:16:41 +03:00
machine.ADC.rst docs/machine*: Remove explicit targets and "machine." prefixes on classes. 2016-06-09 03:03:53 +03:00
machine.I2C.rst extmod/machine_i2c: Add support for the addrsize parameter in mem xfers. 2016-09-28 14:45:29 +10:00
machine.Pin.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
machine.rst docs/library/machine: Update description of disable/enable IRQ funcs. 2016-09-23 13:15:58 +10:00
machine.RTC.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
machine.SD.rst docs/machine*: Remove explicit targets and "machine." prefixes on classes. 2016-06-09 03:03:53 +03:00
machine.SPI.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
machine.Timer.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
machine.UART.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
machine.WDT.rst docs/library/machine.WDT: Add that WDT is available on pyboard. 2016-09-06 14:20:52 +10:00
math.rst docs: math, cmath: Add port availability information. 2016-06-01 22:12:39 +03:00
micropython.rst docs: Add initial draft documentation for the WiPy. 2015-06-10 23:37:56 +02:00
network.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.Accel.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.ADC.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.CAN.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.DAC.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.ExtInt.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.I2C.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.LCD.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.LED.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.Pin.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.rst docs/library: Add reference for pyb.usb_mode and pyb.USB_HID. 2016-08-29 15:17:20 +10:00
pyb.RTC.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.Servo.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.SPI.rst docs/library/pyb.SPI: init(): Describe "bits" argument. 2016-09-18 21:41:21 +03:00
pyb.Switch.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.Timer.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
pyb.UART.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.USB_HID.rst docs/library: Add reference for pyb.usb_mode and pyb.USB_HID. 2016-08-29 15:17:20 +10:00
pyb.USB_VCP.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
select.rst docs/select: Add an article. 2016-06-18 19:06:42 +03:00
sys.rst docs/sys: print_exception: Fixes/clarifications. 2016-06-18 19:06:53 +03:00
ubinascii.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
ucollections.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
uctypes.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
uhashlib.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
uheapq.rst Update uheapq.rst 2014-11-28 17:32:29 +00:00
uio.rst docs/uio: Mention seek()/flush() support for io.BytesIO. 2016-08-09 01:52:56 +03:00
ujson.rst docs: Cleanup and update some docs. 2014-10-31 22:21:37 +00:00
uos.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
ure.rst docs/ure: Typo fix. 2016-06-07 08:53:54 +03:00
usocket.rst docs/library: Fix typo in docs for usocket.listen(). 2016-06-26 12:38:20 +01:00
ussl.rst docs/ussl: Add basic description of axTLS-based modussl. 2016-05-22 23:56:22 +03:00
ustruct.rst docs/ustruct: Describe supported type codes. 2016-05-14 20:48:43 +03:00
utime.rst docs: Spelling mistakes 2016-08-02 11:17:46 +03:00
uzlib.rst docs: uzlib: Typo fix. 2014-12-05 02:08:30 +02:00
wipy.rst docs: Add usocket and ussl modules' documentation. 2015-10-21 15:30:56 +02:00