1133 views|7 replies

6378

Posts

8

Resources
The OP
 

Reading check-in station 5: Chapters 20-24 - "RT-Thread Device Driver Development Guide" [Copy link]

Reading friends @南若 @chrisrh @wakojosin @xiaolinen @damiaa check-in fifth station topic is here:

It is expected that the answer can be obtained after reading Chapters 20-24 of the RT-Thread Device Driver Development Guide.

1. Several sleep modes are defined in the PM power management framework. What are they?
2. There are two types of audio devices. What are they?
3. When registering a MIC device, what type will it be registered as?
4. What two parts does the WLAN management framework layer include?
5. Describe the steps to add a wlan device and what you have learned?


PS: The official answers to the previous station check-in questions are as follows, please refer to them

1. What are the two operation methods used by the sensor framework?
fetch_data is used to obtain data from the sensor; control is used to operate the sensor device.
2. When SPI Nor Flash performs read, write, erase and other operations, in order to ensure the integrity of the operation, it is necessary to ___ protect these operation processes.
Lock (or mutex, mutex, mutex lock, etc.)
3. What different types of sub-devices are supported under the encryption and decryption framework?
Such as CRC, RNG, HASH, CRYP devices
4. When the MTD NAND device is connected to the erase interface, what is the smallest erase unit?
A block size.

This post is from Embedded System
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Latest reply

nmg
@南若 @chrisrh @wakojosin @xiaolinen @damiaa , the answer to this site's check-in question is revealed: 1. USB device drivers are advanced drivers. To develop such device drivers, developers must be familiar with the corresponding peripheral protocols. When developing USBD device drivers, it is not necessary to implement all the operation methods provided by the driver framework. Some operation methods may not be implemented. For example, which ones? Such as suspend, wakeup 2. The CAN interrupt function does not return a value. In the process of driver writing, according to different interrupt events, what values can event take? 1 #define RT_CAN_EVENT_RX_IND 0x01 /* 接收完成 */ 2 #define RT_CAN_EVENT_TX_DONE 0x02 /* 发送完成 */ 3 #define RT_CAN_EVENT_TX_FAIL 0x03 /* 发送失败 */ 4 #define RT_CAN_EVENT_RX_TIMEOUT 0x05 /* 接收超时 */ 5 #define RT_CAN_EVENT_RXOF_IND 0x06 /* 接收溢出 */ 3. Which functions need to be called when entering and exiting an interrupt? Interrupt entry and interrupt exit functions (or rt_interrupt_enter(), rt_interrupt_leave())   Details Published on 2023-10-20 15:39
Personal signature微信搜索公众号“EEWORLDBBS”快去添加关注吧!

6064

Posts

4

Resources
2
 
This post was last edited by damiaa on 2023-9-25 20:38

1. Several sleep modes are defined in the PM power management framework. What are they?

The six types are as follows:

PM_SLEEP_MODE_NONE

PM_SLEEP_MODE_IDLE

PM_SLEEP_MODE_LIGHT

PM_SLEEP_MODE_DEEP

PM_SLEEP_MODE_STANDBY

PM_SLEEP_MODE_SHUTDOWN


2.There are two types of audio equipment. What are they?

Recording device (ANDIO MIC) and playback device (ANDIO SOUND)


3. When registering a MIC device, what type will it be registered as?

flag: audio device flag. The flag of the MIC device is generally RT_DEVICE_FLAG_RDONLY, which is read-only.


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?

1. Create a WLAN device

2. How to implement the operation of WLAN equipment

  wlan_init;

  wlan_scan;

  wlan_get_rssi;

  wlan_cfg_promisc;

  wlan_set_channel;

  wlan_set_contry;

  wlan_send;

3. Register WLAN device

4. Driver Configuration

  Kconfig configuration, SCScript configuration

I learned the specific development methods of wlan devices and understood many details of wlan devices.

This post is from Embedded System
 
 

81

Posts

3

Resources
3
 

1. Several sleep modes are defined in the PM power management framework. What are they?

6 types, namely

PM_SLEEP_MODE_NONE,PM_SLEEP_MODE_IDLE,PM_SLEEP_MODE_LIGHT,

PM_SLEED_MODE_DEEP,PM_SLEEP_MODE_STANDBY,PM_SLEEP_MODE_SHUTDOWN.
2. There are two types of audio devices, what are they?

They are recording device (MIC device) and playback device (SOUND device) respectively
. 3. When registering a MIC device, what type will be registered?

It will be registered as a sound device (Sound Device)
4. What two parts does the WLAN management framework layer include?

Contains WLAN management framework and WLAN private work queue
5. Describe the steps to add a wlan device and what you have learned?

Implement the struct rt_wlan_dev_ops wlan operation function set,

Define struct rt_wlan_device wlan device,

Register the wlan device and wlan operation function set through rt_wlan_dev_register,

The driver manages the sending and receiving of data internally.

Learned about the workflow of the RW007 driver, the distribution process of AP and STA data, etc.

This post is from Embedded System
 
 
 

91

Posts

0

Resources
4
 

1. Six sleep modes are defined in the PM power management framework, namely:

PM_SLEEP_MODE_NONE

PM_SLEEP_MODE_IDLE

PM_SLEEP_MODE_LIGHT

PM_SLEEP_MODE_DEEP

PM_SLEEP_MODE_STANDBY

PM_SLEEP_MODE_SHUTDOWN

2. Recording equipment and broadcasting equipment

3. The flag of the MIC device is generally RT_DEVICE_FLAG_RDONLY, which is read-only.

4. WLAN management framework and WLAN private work queue

5. First: create a WLAN device; second: implement the operation method of the WLAN device; third: register the WLAN device;

I learned the development steps and workflow of WLAN and improved my understanding of WLAN equipment.

This post is from Embedded System
 
 
 

174

Posts

1

Resources
5
 

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.

This post is from Embedded System
 
 
 

12

Posts

0

Resources
6
 

1. Six types:

PM_SLEEP_MODE_NONE

PM_SLEEP_MODE_IDLE

PM_SLEEP_MODE_LIGHT

PM_SLEEP_MODE_DEEP

PM_SLEEP_MODE_STANDBY

PM_SLEEP_MODE_SHUTDOWN
2. ANDIO MIC, ANDIO SOUND
3. RT_DEVICE_FLAG_RDONLY
4. WLAN management framework part, WLAN private work queue part
5. 1 Create WLAN device

2. How to operate WLAN equipment:

Initialize the device; scan; obtain signal strength; configure promiscuous mode; set the channel; set the country code; send data;

3Register WLAN Device

Learned the specific steps of WLAN development

This post is from Embedded System
 
 
 

5216

Posts

239

Resources
7
 

@南若 @chrisrh @wakojosin @xiaolinen @damiaa , the answer to this site's check-in question is revealed:

1. Several sleep modes are defined in the PM power management framework. What are they?

2. There are two types of audio equipment. What are they?

SOUND equipment, MIC equipment

3. When registering a MIC device, what type will it be registered as?

Read-only type (RDONLY)

3. What two parts does the WLAN management framework layer include?

WLAN management part, WLAN private work queue part

4. Describe the steps to add a wlan device and what you learned?

step:

1) Create a WLAN device.

2) Implement the operation method of WLAN device struct rt_wlan_dev_ops.

3) Register the WLAN device using rt_wlan_dev_register.

4) Driver configuration.

5) Driver verification.

b. What you have learned: You need to use your own ideas here.

This post is from Embedded System
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

5216

Posts

239

Resources
8
 

@南若 @chrisrh @wakojosin @xiaolinen @damiaa , the answer to this site's check-in question is revealed:

1. USB device drivers are advanced drivers. To develop such device drivers, developers must be familiar with the corresponding peripheral protocols. When developing USBD device drivers, it is not necessary to implement all the operation methods provided by the driver framework. Some operation methods may not be implemented. For example, which ones?

Such as suspend, wakeup

2. The CAN interrupt function does not return a value. In the process of driver writing, according to different interrupt events, what values can event take?

1 #define RT_CAN_EVENT_RX_IND         0x01    /* 接收完成 */
2 #define RT_CAN_EVENT_TX_DONE        0x02    /* 发送完成 */
3 #define RT_CAN_EVENT_TX_FAIL        0x03    /* 发送失败 */
4 #define RT_CAN_EVENT_RX_TIMEOUT     0x05    /* 接收超时 */
5 #define RT_CAN_EVENT_RXOF_IND       0x06    /* 接收溢出 */

3. Which functions need to be called when entering and exiting an interrupt?

Interrupt entry and interrupt exit functions (or rt_interrupt_enter(), rt_interrupt_leave())

This post is from Embedded System
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list