Methods Enable, Disable

Most of the hardware components support the methods Enable and Disable. These methods enable or disable peripheral functionality, which causes disabling of functionality of the component as well.

Tip: Disabling of the peripheral functionality may save processor resources.

Overview of the method behavior according to the component type:

If the component is disabled, some methods may not be used. Refer to components documentation for details.

  MAIN.C
 
  void main(void)
 
  {
 
  ...
  
  B1_Enable(); /* enable the component functionality */
  
  /* handle the component data or settings */
 
  B1_Disable(); /* disable the component functionality */
 
  ...
  
  }