|
|
|
Bean
BDLC
|
BDLC serial communication
Events are functions called when some important event occurred and its processing starts.
|
Events:
-
EventModule
- Name of the user module (without extension), where the events from this bean are placed.
-
BeforeNewSpeed
- This event is called before the change, when the CPU speed mode is being changed (using the CPU bean methods). This event is enabled only if speed modes are supported in the target CPU bean (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 bean (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 a 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 IFR input buffer has overrun.
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. By calling the IgnoreMessage() method, it is possible to cancel the reception of the rest of the message. 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 IFR buffer is full (see the property 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:
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|