DDC1
 
Component DDC1
DDC1 communication interface
Component Level: High
Methods:
(Methods are user-callable functions/subroutines intended for the component functions control. Please see the Embedded Components page for more information.)
  • Enable - Enable the component. Events may be generated ("DisableEvent"/"EnableEvent").

      ANSIC prototype: byte Enable(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode.

  • Disable - Disable the component. No events will be generated.

      ANSIC prototype: byte Disable(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode.

  • EnableEvent - Enable the events.

      ANSIC prototype: byte EnableEvent(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode.

  • DisableEvent - Disable the events.

      ANSIC prototype: byte DisableEvent(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode.

  • SendChar - This method writes a character to the output buffer and then, after Vsync input signal initiated, to the bus. If no character is ready for transmitting, the Empty character will be sent.

      ANSIC prototype: byte SendChar(byte Chr)
    • Chr:byte - Character to send.
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode
      ERR_TXFULL - Transmitter is full

  • SendBlock - This method writes a block of characters to the output slave buffer and then, after Vsync input signal initiated, to the bus. If no character is ready for transmitting, the Empty character will be sent.

      ANSIC prototype: byte SendBlock(void* Ptr, word Siz, word *Snt)
    • Ptr:void* - Pointer to the block of data to send.
    • Siz:word - Size of the block.
    • Snt: Pointer to word - Pointer to amount of data sent (moved to a buffer).
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode
      ERR_TXFULL - Transmitter is full

  • ClearTxBuf - This method clears all characters in output buffer.

      ANSIC prototype: byte ClearTxBuf(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode

  • GetCharsInTxBuf - Return number of characters in the output buffer.

      ANSIC prototype: word GetCharsInTxBuf(void)
    • Return value:word - Number of characters in the output buffer.


Note: Some methods can be implemented as macros.