|
|
|
Component
BDLC
BDLC serial communication
Events:
(Events are call-back functions called when an important event occurrs.
Please see the Embedded Components page for more information.)
-
EventModule
- Name of the user module (without extension), where the events from this component are placed.
-
BeforeNewSpeed
- This event is called before the change, when the CPU speed mode is being changed (using the CPU component methods). This event is enabled only if speed modes are supported in the target CPU component (more than one speed mode). The event is enabled only if speed modes are supported in the target CPU component (more than one speed mode).
ANSIC prototype: void BeforeNewSpeed(void)
-
AfterNewSpeed
- This event is called when the CPU speed mode is being changed (using CPU methods) - after the change. The event is enabled only if speed modes are supported in the target CPU component (more than one speed mode).
ANSIC prototype: void AfterNewSpeed(void)
-
OnTransmitData
- This event is invoked when BDLC finishes the transmission of the frame (after the EOF).
ANSIC prototype: void OnTransmitData(void)
- Priority - OnTransmitData priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnReceiveData
- This event is invoked when BDLC receives a frame (after the EOF).
ANSIC prototype: void OnReceiveData(void)
- Priority - OnReceiveData priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnCRCError
- This event is called when the CRC error occurs.
ANSIC prototype: void OnCRCError(void)
- Priority - OnCRCError priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnArbitrLost
- This event is called when the lost of arbitration error occurs during the transmission.
ANSIC prototype: void OnArbitrLost(void)
- Priority - OnArbitrLost priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnError
- This event is called when any of the following conditions occur:
- invalid bits or framing symbols occur
- BDLC transmits but receives invalid bits (noise)
- framing error occurs
- bus is shorted to VDD or to GND
- BDLC receives a BREAK symbol.
ANSIC prototype: void OnError(void)
- Priority - OnError priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnOverrun
- This event is called when the input data buffer has overrun
ANSIC prototype: void OnOverrun(void)
- Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnIFROverrun
- This event is called when In-Frame response (IFR) input buffer has overrun. This event is available only with non-zero IFR buffer (see Input IFR buffer size)
ANSIC prototype: void OnIFROverrun(void)
- Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnRxChar
- This event is called when a character is received. Call RecvChar() method to obtain the received byte. It is possible to cancel the reception of the rest of the message by calling the IgnoreMessage() method. This event is called during the frame reception so the code should by kept as short as possible to avoid BDLC receive buffer overrun.
ANSIC prototype: void OnRxChar(void)
- Priority - OnRxChar priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnFullRxBuf
- This event is called when the receive buffer is full (see the property Input data buffer size)
ANSIC prototype: void OnFullRxBuf(void)
- Priority - OnFullRxBuff priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
-
OnFullIFRbuf
- This event is called when the In-Frame response (IFR) buffer is full. This event is available only with non-zero IFR buffer (see Input IFR buffer size).
ANSIC prototype: void OnFullIFRbuf(void)
- Priority - OnFullIFRBuff priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
For each generated event it is possible to set:
|