Functions | Variables
pwm.c File Reference
#include <stdint.h>
#include "ws2811.h"
#include "pwm.h"
Include dependency graph for pwm.c:

Go to the source code of this file.

Functions

int pwm_pin_alt (int chan, int pinnum)
 

Variables

const pwm_pin_table_t pwm_pin_chan0 []
 
const pwm_pin_table_t pwm_pin_chan1 []
 
const pwm_pin_tables_t pwm_pin_tables [RPI_PWM_CHANNELS]
 

Function Documentation

◆ pwm_pin_alt()

int pwm_pin_alt ( int  chan,
int  pinnum 
)

Definition at line 89 of file pwm.c.

Variable Documentation

◆ pwm_pin_chan0

const pwm_pin_table_t pwm_pin_chan0[]
Initial value:
=
{
{
.pinnum = 12,
.altnum = 0,
},
{
.pinnum = 18,
.altnum = 5,
},
{
.pinnum = 40,
.altnum = 0,
},
}

Definition at line 39 of file pwm.c.

◆ pwm_pin_chan1

const pwm_pin_table_t pwm_pin_chan1[]
Initial value:
=
{
{
.pinnum = 13,
.altnum = 0,
},
{
.pinnum = 19,
.altnum = 5,
},
{
.pinnum = 41,
.altnum = 0,
},
{
.pinnum = 45,
.altnum = 0,
},
}

Definition at line 56 of file pwm.c.

◆ pwm_pin_tables

const pwm_pin_tables_t pwm_pin_tables[RPI_PWM_CHANNELS]
Initial value:
=
{
{
.pins = pwm_pin_chan0,
.count = sizeof(pwm_pin_chan0) / sizeof(pwm_pin_chan0[0]),
},
{
.pins = pwm_pin_chan1,
.count = sizeof(pwm_pin_chan1) / sizeof(pwm_pin_chan1[0]),
},
}

Definition at line 76 of file pwm.c.

pwm_pin_chan1
const pwm_pin_table_t pwm_pin_chan1[]
Definition: pwm.c:56
pwm_pin_chan0
const pwm_pin_table_t pwm_pin_chan0[]
Definition: pwm.c:39


ws281x
Author(s): Alexey Rogachevskiy , Oleg Kalachev
autogenerated on Wed Jun 15 2022 02:21:36