Byteflight
 
 
 Bean Byteflight
 
Byteflight communication interface

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.
  • 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).
  • 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).
  • OnFreeTxBuf - This event is called when any of the enabled transmit buffers is empty (i.e. has been transmitted or has been aborted). The event is available only if Transmit buffers are enabled.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnFullRxBuf - This event is called when any of enabled Dedicated receive buffers has successfully received a message so it indicates that Rx buffer is ready to read. The event is available only if Dedicated receive buffer are enabled.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnNotEmptyRx - This event will be called when the Receive FIFO is not empty so it indicates that Rx FIFO is ready to read. The event is available only if receive FIFO buffers are enabled.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnAlarmSync - This event will be called when a sync pulse Alarm has been received.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnNormalSync - This event will be called when a sync pulse Normal has been received.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnXSync - This event will be called when a valid sync pulse (Normal or Alarm sync pulse) has been received. The event is available only if High priority sync pulse interrupt property is enabled.
  • OnTooEarlySync - This event will be called when a sync pulse too early error appears.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnLostSync - This event will be called when a sync pulse lost error appears.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnSlotMismatch - This event will be called when the identifier of a successfully received message differs from the current time slot.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnOverrun - This event is called when a receive FIFO buffer overrun occurred. The event is available only if receive FIFO buffers are enabled.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnError - This event will be called when a message format error occurred. Message format error covers incorrect CRC, incorrect Start bit, Stop bit, missing or corrupted message start sequence, bus activity during the bus idle time, incorrect dominant pulse length.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnIllegalPulse - This event will be called when an illegal pulse error appears.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnLockingError - This event will be called when two receive or two transmit buffers are locked at the same time.
    • Priority - Priority of the event routine. For details see description below of the page.
  • OnWakeup - This event will be called when the module detects bus activity on receive pin while it is asleep.
    • Priority - Priority of the event routine. 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.