Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pwm.h File Reference
#include <linux/err.h>
#include <linux/of.h>

Go to the source code of this file.

Data Structures

struct  pwm_device
 
struct  pwm_ops
 
struct  pwm_chip
 
struct  pwm_lookup
 

Macros

#define PWM_LOOKUP(_provider, _index, _dev_id, _con_id)
 

Enumerations

enum  pwm_polarity { PWM_POLARITY_NORMAL, PWM_POLARITY_INVERSED }
 
enum  { PWMF_REQUESTED = 1 << 0, PWMF_ENABLED = 1 << 1 }
 

Functions

int pwm_set_polarity (struct pwm_device *pwm, enum pwm_polarity polarity)
 

Macro Definition Documentation

#define PWM_LOOKUP (   _provider,
  _index,
  _dev_id,
  _con_id 
)
Value:
{ \
.provider = _provider, \
.index = _index, \
.dev_id = _dev_id, \
.con_id = _con_id, \
}

Definition at line 236 of file pwm.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
PWMF_REQUESTED 
PWMF_ENABLED 

Definition at line 76 of file pwm.h.

enum pwm_polarity - polarity of a PWM signal : a high signal for the duration of the duty- cycle, followed by a low signal for the remainder of the pulse period : a low signal for the duration of the duty- cycle, followed by a high signal for the remainder of the pulse period

Enumerator:
PWM_POLARITY_NORMAL 
PWM_POLARITY_INVERSED 

Definition at line 71 of file pwm.h.

Function Documentation

int pwm_set_polarity ( struct pwm_device pwm,
enum pwm_polarity  polarity 
)

pwm_set_polarity() - configure the polarity of a PWM signal : PWM device : new polarity of the PWM signal

Note that the polarity cannot be configured while the PWM device is enabled

Definition at line 388 of file core.c.