|
|
|
Component
SynchroSlave
Slave for synchronous 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.
-
OnRxChar
- This event is called after a correct character is received.
The event is available only when the Interrupt service/event property is enabled.
Version specific information for Freescale HCS08 and RS08 and HCS12 and HCS12X and ColdFireV1 derivatives
The Bidirectional mode property setting doesn't affect this event. For more information please see Bidirectional mode behavior paragraph.
ANSIC prototype: void OnRxChar(void)
- Priority - OnRxChar priority. Default value is based on the interrupt priority defined in property Interrupt input priority. For details see description below of the page.
-
OnRxCharExt
- This event is called after a correct character is received. The parameter of the event contains the last received character. If an input buffer is used, the character is also inserted into the buffer.
The event is available only when the Interrupt service/event property is enabled.
Version specific information for Freescale HCS08 and RS08 and HCS12 and HCS12X and ColdFireV1 derivatives
The Bidirectional mode property setting doesn't affect this event. For more information please see Bidirectional mode behavior paragraph.
ANSIC prototype: void OnRxCharExt(%'ModuleName'_TComData Chr)
- Chr:ComponentName_TComData - The last received character
- Priority - OnRxCharExt priority. Default value is based on the interrupt priority defined in property Interrupt input priority. For details see description below of the page.
-
OnTxChar
- This event is called after a character is transmitted.
The event is available only when the Interrupt service/event property is enabled.
Version specific information for Freescale HCS08 and RS08 and HCS12 and HCS12X and ColdFireV1 derivatives
The Bidirectional mode property setting doesn't affect this event. For more information please see Bidirectional mode behavior paragraph.
ANSIC prototype: void OnTxChar(void)
- Priority - OnTxChar priority. Default value is based on the interrupt priority defined in property Interrupt input priority. For details see description below of the page.
-
OnFullRxBuf
- This event is called when the input buffer is full, i.e. after reception of the last character that was successfully placed into input buffer.
This event is available only when the Interrupt service/event property is enabled and the Input buffer size property is set to non-zero value.
ANSIC prototype: void OnFullRxBuf(void)
- Priority - OnFullRxBuf priority. Default value is based on the interrupt priority defined in property Interrupt input priority. For details see description below of the page.
-
OnFreeTxBuf
- This event is called after the last character in output buffer is transmitted.
This event is available only when the Interrupt service/event property is enabled and the Output buffer size property is set to non-zero value.
ANSIC prototype: void OnFreeTxBuf(void)
- Priority - OnFreeTxBuf priority. Default value is based on the interrupt priority defined in property Interrupt input priority. For details see description below of the page.
- Event specific for ColdFireV1, HC(S)08, RS08, HCS12, HCS12X 56800/E and MCF derivatives.
-
OnError
- This event is called when a channel error (not the error returned by a given method) occurs. The errors can be read using GetError method.
The event is available only when the Interrupt service/event property is enabled.
ANSIC prototype: void OnError(void)
- Priority - OnError priority. Default value is based on the interrupt priority defined in property Interrupt input priority. For details see description below of the page.
- Events for Freescale HC08 and 56800/E derivatives.
-
OnFault
- This event is called when the slave select pin goes high during a transmission and Mode fault is enabled.
This event is available only when both Interrupt service/event and Fault mode properties are enabled.
ANSIC prototype: void OnFault(void)
- Priority - OnFault priority. Default value is based on the interrupt priority defined in property Interrupt input priority. For details see description below of the page.
For each generated event it is possible to set:
|