Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
pwm_ops Struct Reference

#include <pwm.h>

Data Fields

int(* request )(struct pwm_chip *chip, struct pwm_device *pwm)
 
void(* free )(struct pwm_chip *chip, struct pwm_device *pwm)
 
int(* config )(struct pwm_chip *chip, struct pwm_device *pwm, int duty_ns, int period_ns)
 
int(* set_polarity )(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity)
 
int(* enable )(struct pwm_chip *chip, struct pwm_device *pwm)
 
void(* disable )(struct pwm_chip *chip, struct pwm_device *pwm)
 
struct moduleowner
 

Detailed Description

struct pwm_ops - PWM controller operations : optional hook for requesting a PWM : optional hook for freeing a PWM : configure duty cycles and period length for this PWM : configure the polarity of this PWM : enable PWM output toggling : disable PWM output toggling : optional routine to show contents in debugfs : helps prevent removal of modules exporting active PWMs

Definition at line 119 of file pwm.h.

Field Documentation

int(* config)(struct pwm_chip *chip, struct pwm_device *pwm, int duty_ns, int period_ns)

Definition at line 124 of file pwm.h.

Definition at line 132 of file pwm.h.

Definition at line 130 of file pwm.h.

Definition at line 122 of file pwm.h.

struct module* owner

Definition at line 138 of file pwm.h.

Definition at line 120 of file pwm.h.

Definition at line 127 of file pwm.h.


The documentation for this struct was generated from the following file: