summaryrefslogtreecommitdiff
path: root/py/parsenum.h
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2024-03-03 16:13:55 +0100
committerDamien George <damien@micropython.org>2024-03-28 12:52:28 +1100
commit7753045a8febc69e9476f0985573575a05938c71 (patch)
tree86625810ad8704d0ecea888829c067d1f625777e /py/parsenum.h
parent5a7d78c732f5bdf608298c261549ab605ca5c338 (diff)
extmod: Add interface and security constants at WLAN class level.
Other constants such as `machine.Pin.OUT` are defined on the class that uses them, rather than at the module level. This commit makes that the case for WLAN network interfaces, adding IF_xxx and SEC_xxx constants. The SEC_xxx constants are named as such to match the `security` keyword that they are used with. And the IF_xxx constants have IF as a prefix so they are grouped together as names. This scheme of putting constants on the class means that only the available features (eg security configurations) are made available as constants. It also means that different network interfaces (eg WLAN vs LAN) can keep their own specific constants within their class, such as PHY_xxx for LAN. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
Diffstat (limited to 'py/parsenum.h')
0 files changed, 0 insertions, 0 deletions