⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node_a.txt

📁 mc68HC12C64的CAN部件例子程序,不错的.
💻 TXT
字号:
=============================================================================
List of generated methods in project: NODE_A

THIS TEXT DESCRIPTION IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
=============================================================================

Module "TI1"       (bean TimerInt)

Module "AS1"       (bean AsynchroSerial)
   - AS1_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.   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.
   - AS1_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.  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.
   - AS1_GetCharsInRxBuf -Returns the number of characters in the input buffer. This method is available only if the receiver 
                property is enabled.  DMA mode:  If DMA controller is available on the selected CPU and the receiver is 
                configured to use DMA controller then this method returns the number of characters in the receive buffer.
   - AS1_GetCharsInTxBuf -Returns the number of characters in the output buffer. This method is available only if the 
                transmitter property is enabled.  DMA mode:  If DMA controller is available on the selected CPU and the 
                transmitter is configured to use DMA controller then this method returns the number of characters in the 
                transmit buffer.
   - AS1_GetRxIdle -Returns the state of the receiver idle flag. This method is available only if event <OnIdle> is disabled.
   - AS1_GetTxComplete -Returns whether the transmitter is finished transmitting all data, preamble, and break characters and 
                is idle. It can be used to determine when it is safe to switch a line driver (e.g. in RS-485 applications). 
                This method is available only if event <OnTxComplete> is disabled.

Module "PWM6"      (bean PWM)
   - PWM6_SetRatio8 -This method sets a new duty-cycle ratio. Ratio is expressed as an 8-bit unsigned integer number. 0 - FF 
                value is proportional to ratio 0 - 100%.  Note: Calculated duty depends on the timer capabilities and on the 
                selected period.
   - PWM6_SetDutyMS -This method sets the new duty value of the output signal. The duty is expressed in milliseconds as a 
                16-bit unsigned integer number.

Module "CAN1"      (bean FreescaleCAN)
   - CAN1_SetAcceptanceCode -Sets the acceptance code registers. This method writes a code mask directly to the acceptance code 
                registers.
   - CAN1_SetAcceptanceMask -Sets the acceptance mask registers. This method writes an acceptance mask directly to the 
                acceptance mask registers.
   - CAN1_SetAcceptanceMode -Sets the acceptance mode register.
   - CAN1_SendFrame -Sends the frame via the CAN device. Using this method the user can send own message to the CAN bus. This 
                method allows to specify CAN buffer number, message ID, data to be sent and frame type 
                (DATA_FRAME/REMOTE_FRAME).
   - CAN1_ReadFrame -Reads a frame from the CAN device. The user is informed about CAN reception through OnFullRxBuffer event 
                or GetStateRX method.
   - CAN1_GetStateTX -Returns a value of the transmission complete flags.
   - CAN1_GetStateRX -Returns a value of the reception complete flag.
   - CAN1_GetError -Returns the content of the receiver flag register.
   - CAN1_SendFrameExt -Sends a frame. This method automatically selects a free transmit buffer for data transmission. The user 
                cannot specify a transmit buffer.

Module "Bits1"     (bean BitsIO)
   - Bits1_SetBit -Sets (to one) the specified bit of the Input/Output bean. It is the same as [PutBit(Bit, TRUE)]. (Method is 
                available only if the Direction = _[output]_ or _[input/output]_).
   - Bits1_ClrBit -Clears (sets 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]_).
   - Bits1_NegBit -Negates (inverts) the specified bit of the Input/Output bean. It is the same as [PutBit(Bit,!GetBit(Bit))]. 
                (Method is available only if the Direction = _[output]_ or _[input/output]_).

Module "TO1"       (bean TimerOut)

Module "Cpu"       (bean MC9S12C64_48)
   - 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -