no-OS
Loading...
Searching...
No Matches
maxim_pwm.h File Reference

Maxim platform specific implementation PWM API. More...

#include "tmr.h"
#include "no_os_pwm.h"
#include "no_os_util.h"
Include dependency graph for maxim_pwm.h:

Classes

struct  max_pwm_init_param
 
struct  max_pwm_extra
 

Macros

#define MAX_PWM_TMR_MAX_VAL   NO_OS_GENMASK(15, 0)
 
#define MAX_PWM_PRESCALER_VAL(n)
 
#define MAX_PWM_PRESCALER_TRUE(n)
 
#define MAX_PWM_GET_PRESCALER(n)
 

Variables

const struct no_os_pwm_platform_ops max_pwm_ops
 Maxim specific PWM ops.
 

Detailed Description

Maxim platform specific implementation PWM API.

Author
Dragos Bogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2024(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ MAX_PWM_GET_PRESCALER

#define MAX_PWM_GET_PRESCALER ( n)
Value:
NO_OS_BIT((n) - 1)
#define NO_OS_BIT(x)
Definition no_os_util.h:23

◆ MAX_PWM_PRESCALER_TRUE

#define MAX_PWM_PRESCALER_TRUE ( n)
Value:
NO_OS_BIT((n) / 16)

◆ MAX_PWM_PRESCALER_VAL

#define MAX_PWM_PRESCALER_VAL ( n)
Value:
((n - 1) * 16)

◆ MAX_PWM_TMR_MAX_VAL

#define MAX_PWM_TMR_MAX_VAL   NO_OS_GENMASK(15, 0)

Variable Documentation

◆ max_pwm_ops

const struct no_os_pwm_platform_ops max_pwm_ops
extern

Maxim specific PWM ops.

Maxim specific PWM ops.