Device driver interface for the TPS6274x DC-DC Converter.  
More...
Device driver interface for the TPS6274x DC-DC Converter. 
 | 
| file   | tps6274x.h | 
|   | Device driver interface for the TPS6274x DC-DC Converter. 
  | 
|   | 
| file   | tps6274x_params.h | 
|   | Default configuration for TPS6274x DC-DC Converter. 
  | 
|   | 
◆ anonymous enum
Status and error return codes. 
| Enumerator | 
|---|
| TPS6274X_OK  | everything was fine  
 | 
| TPS6274X_ERR_INIT  | error during init  
 | 
Definition at line 50 of file tps6274x.h.
 
 
◆ tps6274x_init()
Init converter. 
- Parameters
 - 
  
    | [in] | dev | Initialized device descriptor for TPS6274x device  | 
    | [in] | params | Initialization parameters | 
  
   
- Returns
 - set voltage in mV 
 
 
 
◆ tps6274x_load_ctrl()
      
        
          | void tps6274x_load_ctrl  | 
          ( | 
          tps6274x_t *  | 
          dev,  | 
        
        
           | 
           | 
          int  | 
          status  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Sets ctrl pin high to power a subsystem connected on the load pin. 
- Parameters
 - 
  
    | [in] | dev | Device descriptor for TPS6274x device  | 
    | [in] | status | 0 will disable the load, everything else will activate it  | 
  
   
 
 
◆ tps6274x_switch_voltage()
      
        
          | uint16_t tps6274x_switch_voltage  | 
          ( | 
          tps6274x_t *  | 
          dev,  | 
        
        
           | 
           | 
          uint16_t  | 
          voltage  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Switch to different voltage level. 
- Parameters
 - 
  
    | [in] | dev | Device descriptor for TPS6274x device  | 
    | [in] | voltage | Voltage to set in mV (needs to be between 1.8V-3.3V  | 
  
   
- Returns
 - the voltage that was set in mV