Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/pwm.9
Show All 16 Lines | |||||
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd November 12, 2018 | .Dd January 12, 2019 | ||||
.Dt PWM 9 | .Dt PWM 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm pwm , | .Nm pwm , | ||||
.Nm PWM_GET_BUS , | .Nm PWM_GET_BUS , | ||||
.Nm PWM_CHANNEL_CONFIG , | .Nm PWM_CHANNEL_CONFIG , | ||||
.Nm PWM_CHANNEL_GET_CONFIG , | .Nm PWM_CHANNEL_GET_CONFIG , | ||||
.Nm PWM_CHANNEL_SET_FLAGS , | .Nm PWM_CHANNEL_SET_FLAGS , | ||||
Show All 40 Lines | |||||
.It Fn PWM_CHANNEL_SET_FLAGS "device_t dev" "int channel" "uint32_t flags" | .It Fn PWM_CHANNEL_SET_FLAGS "device_t dev" "int channel" "uint32_t flags" | ||||
Set the flags of the channel (like inverted polarity). | Set the flags of the channel (like inverted polarity). | ||||
.It Fn PWM_CHANNEL_GET_FLAGS "device_t dev" "int channel" "uint32_t *flags" | .It Fn PWM_CHANNEL_GET_FLAGS "device_t dev" "int channel" "uint32_t *flags" | ||||
Get the current flags for the channel. | Get the current flags for the channel. | ||||
.It Fn PWM_CHANNEL_ENABLE "device_t dev" "int channel" "bool enable" | .It Fn PWM_CHANNEL_ENABLE "device_t dev" "int channel" "bool enable" | ||||
Enable the PWM channel. | Enable the PWM channel. | ||||
.It Fn PWM_CHANNEL_ISENABLED "device_t dev" "int channel" "bool *enable" | .It Fn PWM_CHANNEL_ISENABLED "device_t dev" "int channel" "bool *enable" | ||||
Test if the PWM channel is enabled. | Test if the PWM channel is enabled. | ||||
.It PWM_CHANNEL_MAX "device_t dev" "int channel" "int *nchannel" | .It Fn PWM_CHANNEL_MAX "device_t dev" "int channel" "int *nchannel" | ||||
Get the maximum number of channels supported by the controller. | Get the maximum number of channels supported by the controller. | ||||
.El | .El | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Nm pwm | .Nm pwm | ||||
interface first appeared in | interface first appeared in | ||||
.Fx 13.0 . | .Fx 13.0 . | ||||
The | The | ||||
.Nm pwm | .Nm pwm | ||||
interface and manual page was written by | interface and manual page was written by | ||||
.An Emmanuel Vadot Aq Mt manu@FreeBSD.org . | .An Emmanuel Vadot Aq Mt manu@FreeBSD.org . |