Analog Devices / platform_drivers

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Embed: (wiki syntax)

« Back to documentation index

pwm.cpp File Reference

pwm.cpp File Reference

Implementation of PWM Mbed platform driver interfaces. More...

Go to the source code of this file.

Functions

int32_t pwm_init (struct pwm_desc **desc, const struct pwm_init_param *param)
 Initialized the PWM interface.
int32_t pwm_enable (struct pwm_desc *desc)
 Enable the PWM interface.
int32_t pwm_disable (struct pwm_desc *desc)
 Disable the PWM interface.
int32_t pwm_remove (struct pwm_desc *desc)
 Remove the memory allocated for PWM device descriptors.

Detailed Description

Implementation of PWM Mbed platform driver interfaces.

Copyright (c) 2021 Analog Devices, Inc.

All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Definition in file pwm.cpp.


Function Documentation

int32_t pwm_disable ( struct pwm_desc *  desc )

Disable the PWM interface.

Parameters:
desc[in,out]- Pointer where the configured instance is stored
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 138 of file pwm.cpp.

int32_t pwm_enable ( struct pwm_desc *  desc )

Enable the PWM interface.

Parameters:
desc[in,out]- Pointer where the configured instance is stored
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 114 of file pwm.cpp.

int32_t pwm_init ( struct pwm_desc **  desc,
const struct pwm_init_param *  param 
)

Initialized the PWM interface.

Parameters:
desc[in,out]- Pointer where the configured instance is stored
param[in]- Configuration information for the instance
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 54 of file pwm.cpp.

int32_t pwm_remove ( struct pwm_desc *  desc )

Remove the memory allocated for PWM device descriptors.

Parameters:
desc[in,out]- Pointer where the configured instance is stored
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 163 of file pwm.cpp.