wifiiot_pwm.h

Overview

Related Modules:

Wifiiot

Description:

Declares the PWM interface functions.

These functions are used for PWM initialization, deinitialization, and signal output.

Since:

1.0

Version:

1.0

Summary

Enumerations

Enumeration Name

Description

WifiIotPwmClkSource { WIFI_IOT_PWM_CLK_160M, WIFI_IOT_PWM_CLK_XTAL, WIFI_IOT_PWM_CLK_MAX }

Enumerates PWM clock sources.

WifiIotPwmPort {   WIFI_IOT_PWM_PORT_PWM0 = 0, WIFI_IOT_PWM_PORT_PWM1 = 1, WIFI_IOT_PWM_PORT_PWM2 = 2, WIFI_IOT_PWM_PORT_PWM3 = 3,   WIFI_IOT_PWM_PORT_PWM4 = 4, WIFI_IOT_PWM_PORT_PWM5 = 5, WIFI_IOT_PWM_PORT_MAX }

Enumerates PWM ports.

Functions

Function Name

Description

PwmInit (WifiIotPwmPort port)

unsigned int 

Initializes a PWM device.

PwmDeinit (WifiIotPwmPort port)

unsigned int 

Deinitializes a PWM device.

PwmStart (WifiIotPwmPort port, unsigned short duty, unsigned short freq)

unsigned int 

Outputs PWM signals based on the input parameters.

PwmStop (WifiIotPwmPort port)

unsigned int 

Stops the PWM signal output.