翻译这段英语并把里面用到的语法讲解一下In Polling mode, the HAL functions return the process status when the data processing in blocking mode is complete. The operation is considered complete when the function returns the HAL_OK status, otherwise an error status is returned. The user can get more information through the HAL_PPP_GetState() function. The data processing is handled internally in a loop. A timeout (expressed in ms) is used to prevent process hanging. The example below shows the typical Polling mode processing sequence :
时间: 2024-04-28 21:27:15 浏览: 193
在轮询模式下,当阻塞模式中的数据处理完成时,HAL函数会返回进程状态。当函数返回HAL_OK状态时,操作被认为是完成的,否则将返回错误状态。用户可以通过HAL_PPP_GetState()函数获取更多信息。数据处理在内部循环中处理。超时时间(以毫秒为单位)用于防止进程挂起。下面的示例显示了典型的轮询模式处理序列:
这段英语中使用了一些技术语言和特定的语法结构,其中包括:
1. 介词短语"in Polling mode"表示在轮询模式下;
2. 从句"when the data processing in blocking mode is complete"表示当阻塞模式的数据处理完成时;
3. 主语"the operation"表示操作;
4. 从句"otherwise an error status is returned"表示否则返回错误状态;
5. 动词短语"get more information"表示获取更多信息;
6. 名词短语"the data processing"表示数据处理;
7. 介词短语"in a loop"表示在循环中;
8. 名词短语"a timeout"表示超时时间;
9. 动词短语"prevent process hanging"表示防止进程挂起;
10. 名词短语"the typical Polling mode processing sequence"表示典型的轮询模式处理序列。
相关问题
翻译Low-power mode (LPM) is used to reduce system quiescent currents. Low-power mode may be entered only by sending the Low-power command. When returning to Normal mode, all register settings is maintained. The Enter Low-power mode register is write only and has the effect of going to LPM and beginning operation as selected (polling, interrupt timer). When returning form Low-power mode, the first SPI transaction will return the Fault Status and the intflg bit set to high, as well as the actual status of the Input pins.
低功耗模式(LPM)用于降低系统静态电流。只能通过发送低功耗命令进入低功耗模式。返回到正常模式时,所有寄存器设置将被保留。
进入低功耗模式寄存器只能写入,并且具有进入所选的LPM和开始操作(轮询、中断计时器)的效果。从低功耗模式返回时,第一个SPI事务将返回故障状态和intflg位设置为高,以及输入引脚的实际状态。
翻译The wake-up register defines the inputs that are allowed to wake the 33978 from Low-power mode. Programming the wake-up bit to logic [0] disables the specific input from waking the IC (Table 29). Programming the wake-up bit to logic [1] enables the specific input to wake-up with any switch change of state The MCU may change or update the wake-up register via software at any time in Normal mode. The Wake-up register defaults to logic [1] (wake-up enabled). If all channels (SG and SB) have the Wake-up bit disabled, the device disables the polling timer to reduce the current consumption during Low-power mode.
唤醒寄存器定义了可以从低功耗模式唤醒33978的输入信号。将唤醒位编程为逻辑[0]会禁用特定输入信号唤醒IC(表29)。将唤醒位编程为逻辑[1]会启用特定输入信号,以便在任何开关状态改变时唤醒。MCU可以在正常模式下随时通过软件更改或更新唤醒寄存器。唤醒寄存器默认为逻辑[1](启用唤醒)。如果所有通道(SG和SB)的唤醒位被禁用,设备将禁用轮询定时器,以减少低功耗模式下的电流消耗。
阅读全文