dg128.txt
来自「飞思卡尔智能车的sci例程用于大学生智能车大赛的串口调试」· 文本 代码 · 共 37 行
TXT
37 行
=============================================================================
List of generated methods in project: DG128
THIS TEXT DESCRIPTION IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
=============================================================================
Module "SCI0" (bean AsynchroSerial)
- SCI0_RecvChar -If any data is received, this method returns one character, otherwise it returns an error code (it does not
wait for data). This method is enabled only if the receiver property is enabled. [Note:] Because the preferred
method to handle error and break exception in the interrupt mode is to use events <OnError> and <OnBreak> the
return value ERR_RXEMPTY has higher priority than other error codes. As a consequence the information about an
exception in interrupt mode is returned only if there is a valid character ready to be read. Version specific
information for Freescale 56800 derivatives ] DMA mode: If DMA controller is available on the selected CPU
and the receiver is configured to use DMA controller then this method only sets the selected DMA channel. Then
the status of the DMA transfer can be checked using GetCharsInRxBuf method. See an example of a typical usage
for details about the communication using DMA.
- SCI0_SendChar -Sends one character to the channel. If the bean is temporarily disabled (Disable method) SendChar method
only stores data into an output buffer. In case of a zero output buffer size, only one character can be stored.
Enabling the bean (Enable method) starts the transmission of the stored data. This method is available only if
the transmitter property is enabled. Version specific information for Freescale 56800 derivatives ] DMA mode:
If DMA controller is available on the selected CPU and the transmitter is configured to use DMA controller then
this method only sets selected DMA channel. Then the status of the DMA transfer can be checked using
GetCharsInTxBuf method. See an example of a typical usage for details about communication using DMA.
Module "Byte1" (bean ByteIO)
- Byte1_ClrBit -Clears (set to zero) the specified bit of the Input/Output bean. It is the same as [PutBit(Bit, FALSE)].
(Method is available only if the Direction = _[output]_ or _[input/output]_).
Module "Cpu" (bean MC9S12DG128_112)
- Cpu_EnableInt -Enable maskable interrupts
- Cpu_DisableInt -Disable maskable interrupts
- Cpu_SetWaitMode -Set low power mode - Wait mode. For more information about the wait mode see documentation of this CPU.
Release from Wait mode: Reset or interrupt
- Cpu_SetStopMode -Set low power mode - Stop mode. For more information about the stop mode see documentation of this CPU.
===================================================================================
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?