SynchroMaster
 
Component SynchroMaster
Master for synchronous serial communication
Component Level: High
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 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 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)

  • 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.

  • 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 ColdFireV1, HC08, HCS08, RS08, HCS12, HCS12X and 56800/E derivatives
    • OnFault - This event is called when the slave select pin goes to logic 0 and Mode fault is enabled. When the Fault mode error occurs, the component is automatically disabled. Use Enable method to re-enable it. The OnError event is not called when this situation occurs.
      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: