📄 lm75a.txt
字号:
=============================================================================
List of generated methods in project: LM75A
THIS TEXT DESCRIPTION IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
=============================================================================
Module "I2C1" (bean InternalI2C)
- I2C1_SendChar -When working as a MASTER, this method writes one (7-bit addressing) or two (10-bit addressing) slave
address bytes inclusive of R/W bit = 0 to the I2C bus and then writes one character (byte) to the bus. The
slave address must be specified before, by the "SelectSlave" or "SelectSlave10" method or in the bean
initialization section, "Target slave address init" property. If interrupt service is enabled and the method
returns ERR_OK, it doesn't mean that transmission was successful. The state of transmission is obtainable from
(OnTransmitData, OnError or OnArbitLost) events. When working as a SLAVE, this method writes a character to
the internal output slave buffer and, after the master starts the communication, to the I2C bus. If no
character is ready for a transmission (internal output slave buffer is empty), the Empty character will be sent
(see "Empty character" property).
- I2C1_RecvChar -When working as a MASTER, this method writes one (7-bit addressing) or two (10-bit addressing) slave
address bytes inclusive of R/W bit = 1 to the I2C bus, then reads one character (byte) from the bus and then
sends the stop condition. The slave address must be specified before, by the "SelectSlave" or "SelectSlave10"
method or in bean initialization section, property "Target slave address init". If interrupt service is enabled
and the method returns ERR_OK, it doesn't mean that transmission was finished successfully. The state of
transmission must be tested by means of events (OnReceiveData, OnError or OnArbitLost). In case of successful
transmission, received data is ready after OnReceiveData event is called. When working as a SLAVE, this
method reads a character from the input slave buffer.
- I2C1_SendBlock -When working as a MASTER, this method writes one (7-bit addressing) or two (10-bit addressing) slave
address bytes inclusive of R/W bit = 0 to the I2C bus and then writes the block of characters to the bus. The
slave address must be specified before, by the "SelectSlave" or "SlaveSelect10" method or in bean
initialization section, "Target slave address init" property. If interrupt service is enabled and the method
returns ERR_OK, it doesn't mean that transmission was successful. The state of transmission is detectable by
means of events (OnTransmitData, OnError or OnArbitLost). Data to be send is not copied to an internal buffer
and remains in the original location. Therefore the content of the buffer should not be changed until the
transmission is complete. Event OnTransmitData can be used to detect the end of the transmission. When working
as a SLAVE, this method writes a block of characters to the internal output slave buffer and then, after the
master starts the communication, to the I2C bus. If no character is ready for a transmission (internal output
slave buffer is empty), the "Empty character" will be sent (see "Empty character" property). In SLAVE mode the
data are copied to an internal buffer, if specified by "Output buffer size" property.
- I2C1_RecvBlock -When working as a MASTER, this method writes one (7-bit addressing) or two (10-bit addressing) slave
address bytes inclusive of R/W bit = 1 to the I2C bus, then reads the block of characters from the bus and then
sends the stop condition. The slave address must be specified before, by the "SelectSlave" or "SelectSlave10"
method or in bean initialization section, "Target slave address init" property. If interrupt service is enabled
and the method returns ERR_OK, it doesn't mean that transmission was finished successfully. The state of
transmission must be tested by means of events (OnReceiveData, OnError or OnArbitLost). In case of successful
transmission, received data is ready after OnReceiveData event is called. When working as a SLAVE, this
method reads a block of characters from the input slave buffer.
- I2C1_GetCharsInTxBuf -Returns number of characters in the output buffer. In SLAVE mode returns the number of characters in
the internal slave output buffer. In MASTER mode returns number of characters to be sent from the user buffer
(passed by SendBlock method). This method is not supported in polling mode.
- I2C1_SelectSlave -This method selects a new slave for communication by its 7-bit slave address value. Any send or receive
method directs to or from selected device, until a new slave device is selected by this method. This method is
not available for the SLAVE mode.
- I2C1_GetCharsInRxBuf -Returns number of characters in the input buffer. In SLAVE mode returns the number of characters in
the internal slave input buffer. In MASTER mode returns number of characters to be received into a user buffer
(passed by RecvChar or RecvBlock method). This method is not supported in polling mode.
Module "Cpu" (bean MC9S08QE8_32)
- Cpu_EnableInt -Enables maskable interrupts
- Cpu_DisableInt -Disables maskable interrupts
- Cpu_Delay100US -This method realizes software delay. The length of delay is at least 100 microsecond multiply input
parameter [us100]. As the delay implementation is not based on real clock, the delay time may be increased by
interrupt service routines processed during the delay. The method is independent on selected speed mode.
===================================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -