1. Several sleep modes are defined in the PM power management framework. What are they?
Six sleep modes are defined, the types are as follows:
PM_SLEEP_MODE_NONE at level 0
PM_SLEEP_MODE_IDLE at level 1
PM_SLEEP_MODE_LIGHT at level 2
PM_SLEEP_MODE_DEEP at level 3
PM_SLEEP_MODE_STANDBY at level 4
PM_SLEEP_MODE_SHUTDOWN at level 5
2. There are two types of audio equipment. What are they?
RTthread's Audio device driver framework supports recording devices (MIC devices) and broadcasting devices (SOUND devices);
3. When registering a MIC device, what type will it be registered as?
uint32_t flag (audio device flag, the flag of the MIC device is generally RT_DEVICE_FLAG_RDONLY, which is a read-only type)
4. What two parts does the WLAN management framework layer include?
WLAN management framework part and WLAN private work queue part;
5. Describe the steps to add a wlan device and what you learned?
21.2 Create WLAN device;
21.3 Implement WLAN equipment: ①wlan_init: initialize the equipment; ②wlan_scan: scan; ③wlan_get_rssi: get signal strength; ④wlan_cfg_promisc: configure promiscuous mode; ⑤wlan_set_channel: set the channel; ⑥wlan_set_country: set the country code; ⑦wlan_send send data;
21.4 Registering WLAN Devices
Through this chapter and the introduction in the device implementation chapter, you can understand how to write and implement WLAN device drivers.