Workflow

  1. 1.
    Create a BOD33 module configuration struct, which can be filled out to adjust the configuration of a physical BOD peripheral.
    struct bod33_config config_bod33;
    
  2. 2.
    Initialize the BOD33 configuration struct with the module's default values.
    bod33_get_config_defaults(&config_bod33);
    
    Note: This should always be performed before using the configuration struct to ensure that all values are initialized to known default settings.
  3. 3.
    Configure the BOD33 module with the desired settings.
    bod33_set_config(&config_bod33);
    
  4. 4.
    Enable the BOD33 module so that it will monitor the power supply voltage.
    bod33_enable();
    

The workflow of the BOD12 is the same as for the BOD33.