You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//| """Aggressive power management mode for optimal power usage at the cost of performance"""
63
+
//| PM_PERFORMANCE: int
64
+
//| """Performance power management mode where more power is used to increase performance"""
65
+
//| PM_DISABLED: int
66
+
//| """Disable power management and always use highest power mode. CircuitPython sets this value at reset time, because it provides the best connectivity reliability."""
67
+
//|
52
68
//| def set_power_management(value: int) -> None:
53
69
//| """Set the power management register
54
70
//|
55
-
//| According to Raspberry Pi documentation, the value 0xa11140
56
-
//| increases responsiveness at the cost of higher power usage.
71
+
//| For transmitter power, see ``wifi.Radio.txpower``.
72
+
//| This controls software power saving features inside the cyw43 chip.
73
+
//| it does not control transmitter power.
74
+
//|
75
+
//| The value is interpreted as a 24-bit hexadecimal number of the form
76
+
//| ``0x00adbrrm``.
77
+
//|
78
+
//| The low 4 bits, ``m``, are the power management mode:
79
+
//| * 0: disabled
80
+
//| * 1: aggressive power saving which reduces wifi throughput
81
+
//| * 2: Power saving with high througput
57
82
//|
58
-
//| Besides this value, there appears to be no other public documentation
59
-
//| of the values that can be used.
83
+
//| The next 8 bits, ``r``, specify "the maximum time to wait before going back to sleep" for power management mode 2. The units of ``r`` are 10ms.
84
+
//|
85
+
//| The next 4 bits, ``b``, are the "wake period is measured in beacon periods".
86
+
//|
87
+
//| The next 4 bits, ``d``, specify the "wake interval measured in DTIMs. If this is set to 0, the wake interval is measured in beacon periods".
88
+
//|
89
+
//| The top 4 bits, ``a``, specifies the "wake interval sent to the access point"
90
+
//|
91
+
//| Several ``PM_`` constants gathered from various sources are included
92
+
//| in this module. According to Raspberry Pi documentation, the value 0xa11140
93
+
//| (called `cyw43.PM_DISABLED` here) increases responsiveness at the cost of higher power
0 commit comments