Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
OPAMP Driver Backend API

Data Structures

struct  opamp_driver_api
  Driver Operations OPAMP driver operations More...

Typedefs

typedef int(* opamp_api_set_gain_t) (const struct device *dev, enum opamp_gain gain)
 Callback API to set opamp gain.

Enumerations

enum  opamp_functional_mode {
  OPAMP_FUNCTIONAL_MODE_DIFFERENTIAL = 0 , OPAMP_FUNCTIONAL_MODE_INVERTING , OPAMP_FUNCTIONAL_MODE_NON_INVERTING , OPAMP_FUNCTIONAL_MODE_FOLLOWER ,
  OPAMP_FUNCTIONAL_MODE_STANDALONE
}
 OPAMP functional mode. More...

Detailed Description

This group contains the API type definitions, callback signatures, and other helpers required to implement a OPAMP driver.

Typedef Documentation

◆ opamp_api_set_gain_t

typedef int(* opamp_api_set_gain_t) (const struct device *dev, enum opamp_gain gain)

#include <zephyr/drivers/opamp.h>

Callback API to set opamp gain.

See opamp_set_gain() for argument description

Enumeration Type Documentation

◆ opamp_functional_mode

#include <zephyr/drivers/opamp.h>

OPAMP functional mode.

Values correspond 1:1 to the functional-mode property in dts/bindings/opamp/opamp-controller.yaml.

Enumerator
OPAMP_FUNCTIONAL_MODE_DIFFERENTIAL 

Differential amplifier mode.

OPAMP_FUNCTIONAL_MODE_INVERTING 

Inverting amplifier mode.

OPAMP_FUNCTIONAL_MODE_NON_INVERTING 

Non-inverting amplifier mode.

OPAMP_FUNCTIONAL_MODE_FOLLOWER 

Follower mode.

OPAMP_FUNCTIONAL_MODE_STANDALONE 

Standalone mode.

The gain is set by external resistors. The API call to set the gain is ignored in this mode or has no impact.