@@ -8,7 +8,7 @@ This module implements "foreign data interface" for MicroPython. The idea
88behind it is similar to CPython's ``ctypes `` modules, but the actual API is
99different, streamlined and optimized for small size. The basic idea of the
1010module is to define data structure layout with about the same power as the
11- C language allows, and the access it using familiar dot-syntax to reference
11+ C language allows, and then access it using familiar dot-syntax to reference
1212sub-fields.
1313
1414.. seealso ::
@@ -43,7 +43,7 @@ Following are encoding examples for various field types:
4343
4444 i.e. value is a 2-tuple, first element of which is offset, and second is
4545 a structure descriptor dictionary (note: offsets in recursive descriptors
46- are relative to a structure it defines).
46+ are relative to the structure it defines).
4747
4848* Arrays of primitive types::
4949
@@ -86,9 +86,9 @@ Following are encoding examples for various field types:
8686 BF_POS and BF_LEN positions, respectively. Bitfield position is counted
8787 from the least significant bit, and is the number of right-most bit of a
8888 field (in other words, it's a number of bits a scalar needs to be shifted
89- right to extra the bitfield).
89+ right to extract the bitfield).
9090
91- In the example above, first UINT16 value will be extracted at offset 0
91+ In the example above, first a UINT16 value will be extracted at offset 0
9292 (this detail may be important when accessing hardware registers, where
9393 particular access size and alignment are required), and then bitfield
9494 whose rightmost bit is least-significant bit of this UINT16, and length
@@ -99,7 +99,7 @@ Following are encoding examples for various field types:
9999 in particular, example above will access least-significant byte of UINT16
100100 in both little- and big-endian structures. But it depends on the least
101101 significant bit being numbered 0. Some targets may use different
102- numbering in their native ABI, but ``uctypes`` always uses normalized
102+ numbering in their native ABI, but ``uctypes`` always uses the normalized
103103 numbering described above.
104104
105105Module contents
0 commit comments