GenericBitIO
 
Component GenericBitIO
Generic BitIO Bean
Component Level: Low
Methods:
(Methods are user-callable functions/subroutines intended for the component functions control. Please see the Embedded Components page for more information.)
  • GetDir - Return the direction of the pin (input/output)

      ANSIC prototype: bool GetDir(void)
    • Return value:bool - Error code

  • SetDir - Sets the direction of the pin (input or output)

      ANSIC prototype: void SetDir(bool Dir)
    • Dir:bool - no hint

  • SetInput - Sets the pin as input.

      ANSIC prototype: void SetInput(void)

  • SetOutput - Sets the pin as output

      ANSIC prototype: void SetOutput(void)

  • GetVal - Returns the pin value

      ANSIC prototype: bool GetVal(void)
    • Return value:bool - Error code

  • PutVal - Sets the pin value

      ANSIC prototype: void PutVal(bool Val)
    • Val:bool - no hint

  • ClrVal - Clears the pin value (sets it to a low level)

      ANSIC prototype: void ClrVal(void)

  • SetVal - Sets the pin value to a high value.

      ANSIC prototype: void SetVal(void)

  • NegVal - Toggles/negates the pin value

      ANSIC prototype: void NegVal(void)

  • Init - Initializes the driver

      ANSIC prototype: void Init(void)


Note: Some methods can be implemented as macros.