|
|
|
Bean
SynchroMaster
|
Master for synchronous 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 when the CPU speed mode is being changed (using CPU methods) - before 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 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)
-
OnRxChar
- This event is called after a correct character is received.
DMA mode: If DMA controller is available on the selected CPU and the receiver is configured to use DMA controller then this event is disabled. Only OnFullRxBuf method can be used in DMA mode.
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.
-
OnTxChar
- This event is called after a character is transmitted.
DMA mode: If DMA controller is available on the selected CPU and the transmitter is configured to use DMA controller then this event is disabled. Only OnFreeTxBuf method can be used in DMA mode.
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.
This event is available only if non-zero length of input buffer is defined. DMA mode: If DMA controller is available on the selected CPU and the receiver is configured to use DMA controller then this event is enabled and can be used to detect the end of DMA transfer.
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 only available when non-zero length of output buffer is defined. DMA mode: If DMA controller is available on the selected CPU and the transmitter is configured to use DMA controller then this event is enabled and can be used to detect the end of DMA transfer.
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.
-
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.
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, HCS08, HCS12, HCS12X and 56800 derivatives
-
OnFault
- This event is called when the slave select pin goes to logic 0 and Mode fault is enabled. When the mode fault error occurs, the bean is automatically disabled. Use Enable method to re-enable it.
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.
-
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 are used, the character is also inserted into the buffer.
DMA mode: If DMA controller is available on the selected CPU and the receiver is configured to use DMA controller then this event is disabled. Only OnFullRxBuf method can be used in DMA mode.
ANSIC prototype: void OnRxCharExt(%'ModuleName'_TComData Chr)
- Chr:BeanName_TComData - The last received character
- Priority - Priority of the event routine. 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:
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|