Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
max31790.h File Reference

Go to the source code of this file.

Macros

#define MAX31790_OSCILLATOR_FREQUENCY_IN_HZ   32768
 
#define MAX31790_PWMTARGETDUTYCYCLE_MAXIMUM   ((1 << 9) - 1)
 
#define MAX31790_TACHTARGETCOUNT_MAXIMUM   ((1 << 11) - 1)
 
#define MAX31790_CHANNEL_COUNT   6
 
#define MAX31790_RESET_TIMEOUT_IN_US   1000
 
#define MAX37190_REGISTER_GLOBALCONFIGURATION   0x00
 
#define MAX37190_REGISTER_PWMFREQUENCY   0x01
 
#define MAX37190_REGISTER_FANCONFIGURATION(channel)
 
#define MAX31790_REGISTER_FANDYNAMICS(channel)
 
#define MAX37190_REGISTER_FANFAULTSTATUS1   0x11
 
#define MAX37190_REGISTER_TACHCOUNTMSB(channel)
 
#define MAX31790_REGISTER_PWMOUTTARGETDUTYCYCLEMSB(channel)
 
#define MAX31790_REGISTER_TACHTARGETCOUNTMSB(channel)
 
#define MAX37190_GLOBALCONFIGURATION_STANDBY_BIT   BIT(7)
 
#define MAX37190_GLOBALCONFIGURATION_RESET_BIT   BIT(6)
 
#define MAX37190_GLOBALCONFIGURATION_BUSTIMEOUT_BIT   BIT(5)
 
#define MAX37190_GLOBALCONFIGURATION_OSCILLATORSELECTION_BIT   BIT(3)
 
#define MAX37190_GLOBALCONFIGURATION_I2CWATCHDOGSTATUS_BIT   BIT(0)
 
#define MAX37190_FANXCONFIGURATION_MONITOR_BIT   BIT(4)
 
#define MAX37190_FANXCONFIGURATION_TACHINPUTENABLED_BIT   BIT(3)
 
#define MAX37190_FANXCONFIGURATION_LOCKEDROTOR_BIT   BIT(2)
 
#define MAX37190_FANXCONFIGURATION_LOCKEDROTORPOLARITY_BIT   BIT(1)
 
#define MAX37190_FANXCONFIGURATION_TACH_BIT   BIT(0)
 
#define MAX37190_FANXCONFIGURATION_MODE_BIT   BIT(7)
 
#define MAX37190_FANXDYNAMICS_ASYMMETRICRATEOFCHANGE_BIT   BIT(1)
 
#define MAX37190_GLOBALCONFIGURATION_I2CWATCHDOG_LENGTH   2
 
#define MAX37190_GLOBALCONFIGURATION_I2CWATCHDOG_POS   1
 
#define MAX37190_FANXDYNAMICS_SPEEDRANGE_LENGTH   3
 
#define MAX37190_FANXDYNAMICS_SPEEDRANGE_POS   5
 
#define MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_LENGTH   3
 
#define MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_POS   2
 
#define MAX37190_PWMFREQUENCY_PWM_LENGTH   4
 
#define MAX37190_PWMFREQUENCY_PWM4TO6_POS   4
 
#define MAX37190_PWMFREQUENCY_PWM1TO3_LENGTH   4
 
#define MAX37190_PWMFREQUENCY_PWM1TO3_POS   0
 
#define MAX37190_FANXCONFIGURATION_SPINUP_LENGTH   2
 
#define MAX37190_FANXCONFIGURATION_SPINUP_POS   5
 
#define MAX31790_FANXDYNAMCIS_SPEED_RANGE_GET(value)
 
#define MAX31790_FLAG_SPEED_RANGE_GET(flags)
 
#define MAX31790_FLAG_PWM_RATE_OF_CHANGE_GET(flags)
 

Macro Definition Documentation

◆ MAX31790_CHANNEL_COUNT

#define MAX31790_CHANNEL_COUNT   6

◆ MAX31790_FANXDYNAMCIS_SPEED_RANGE_GET

#define MAX31790_FANXDYNAMCIS_SPEED_RANGE_GET ( value)
Value:
value)
#define GENMASK(h, l)
Create a contiguous bitmask starting at bit position l and ending at position h.
Definition util.h:79
#define FIELD_GET(mask, value)
Extract a bitfield element from value corresponding to the field mask mask.
Definition util_macro.h:103
#define MAX37190_FANXDYNAMICS_SPEEDRANGE_LENGTH
Definition max31790.h:42
#define MAX37190_FANXDYNAMICS_SPEEDRANGE_POS
Definition max31790.h:43

◆ MAX31790_FLAG_PWM_RATE_OF_CHANGE_GET

#define MAX31790_FLAG_PWM_RATE_OF_CHANGE_GET ( flags)
Value:
PWM_MAX31790_FLAG_PWM_RATE_OF_CHANGE_POS - 1, \
PWM_MAX31790_FLAG_PWM_RATE_OF_CHANGE_POS), \
#define MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_LENGTH
Definition max31790.h:44
flags
Definition parser.h:96

◆ MAX31790_FLAG_SPEED_RANGE_GET

#define MAX31790_FLAG_SPEED_RANGE_GET ( flags)
Value:
PWM_MAX31790_FLAG_SPEED_RANGE_POS - 1, \
PWM_MAX31790_FLAG_SPEED_RANGE_POS), \

◆ MAX31790_OSCILLATOR_FREQUENCY_IN_HZ

#define MAX31790_OSCILLATOR_FREQUENCY_IN_HZ   32768

◆ MAX31790_PWMTARGETDUTYCYCLE_MAXIMUM

#define MAX31790_PWMTARGETDUTYCYCLE_MAXIMUM   ((1 << 9) - 1)

◆ MAX31790_REGISTER_FANDYNAMICS

#define MAX31790_REGISTER_FANDYNAMICS ( channel)
Value:
(0x08 + channel)

◆ MAX31790_REGISTER_PWMOUTTARGETDUTYCYCLEMSB

#define MAX31790_REGISTER_PWMOUTTARGETDUTYCYCLEMSB ( channel)
Value:
(0x40 + 2 * channel)

◆ MAX31790_REGISTER_TACHTARGETCOUNTMSB

#define MAX31790_REGISTER_TACHTARGETCOUNTMSB ( channel)
Value:
(0x50 + 2 * channel)

◆ MAX31790_RESET_TIMEOUT_IN_US

#define MAX31790_RESET_TIMEOUT_IN_US   1000

◆ MAX31790_TACHTARGETCOUNT_MAXIMUM

#define MAX31790_TACHTARGETCOUNT_MAXIMUM   ((1 << 11) - 1)

◆ MAX37190_FANXCONFIGURATION_LOCKEDROTOR_BIT

#define MAX37190_FANXCONFIGURATION_LOCKEDROTOR_BIT   BIT(2)

◆ MAX37190_FANXCONFIGURATION_LOCKEDROTORPOLARITY_BIT

#define MAX37190_FANXCONFIGURATION_LOCKEDROTORPOLARITY_BIT   BIT(1)

◆ MAX37190_FANXCONFIGURATION_MODE_BIT

#define MAX37190_FANXCONFIGURATION_MODE_BIT   BIT(7)

◆ MAX37190_FANXCONFIGURATION_MONITOR_BIT

#define MAX37190_FANXCONFIGURATION_MONITOR_BIT   BIT(4)

◆ MAX37190_FANXCONFIGURATION_SPINUP_LENGTH

#define MAX37190_FANXCONFIGURATION_SPINUP_LENGTH   2

◆ MAX37190_FANXCONFIGURATION_SPINUP_POS

#define MAX37190_FANXCONFIGURATION_SPINUP_POS   5

◆ MAX37190_FANXCONFIGURATION_TACH_BIT

#define MAX37190_FANXCONFIGURATION_TACH_BIT   BIT(0)

◆ MAX37190_FANXCONFIGURATION_TACHINPUTENABLED_BIT

#define MAX37190_FANXCONFIGURATION_TACHINPUTENABLED_BIT   BIT(3)

◆ MAX37190_FANXDYNAMICS_ASYMMETRICRATEOFCHANGE_BIT

#define MAX37190_FANXDYNAMICS_ASYMMETRICRATEOFCHANGE_BIT   BIT(1)

◆ MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_LENGTH

#define MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_LENGTH   3

◆ MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_POS

#define MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_POS   2

◆ MAX37190_FANXDYNAMICS_SPEEDRANGE_LENGTH

#define MAX37190_FANXDYNAMICS_SPEEDRANGE_LENGTH   3

◆ MAX37190_FANXDYNAMICS_SPEEDRANGE_POS

#define MAX37190_FANXDYNAMICS_SPEEDRANGE_POS   5

◆ MAX37190_GLOBALCONFIGURATION_BUSTIMEOUT_BIT

#define MAX37190_GLOBALCONFIGURATION_BUSTIMEOUT_BIT   BIT(5)

◆ MAX37190_GLOBALCONFIGURATION_I2CWATCHDOG_LENGTH

#define MAX37190_GLOBALCONFIGURATION_I2CWATCHDOG_LENGTH   2

◆ MAX37190_GLOBALCONFIGURATION_I2CWATCHDOG_POS

#define MAX37190_GLOBALCONFIGURATION_I2CWATCHDOG_POS   1

◆ MAX37190_GLOBALCONFIGURATION_I2CWATCHDOGSTATUS_BIT

#define MAX37190_GLOBALCONFIGURATION_I2CWATCHDOGSTATUS_BIT   BIT(0)

◆ MAX37190_GLOBALCONFIGURATION_OSCILLATORSELECTION_BIT

#define MAX37190_GLOBALCONFIGURATION_OSCILLATORSELECTION_BIT   BIT(3)

◆ MAX37190_GLOBALCONFIGURATION_RESET_BIT

#define MAX37190_GLOBALCONFIGURATION_RESET_BIT   BIT(6)

◆ MAX37190_GLOBALCONFIGURATION_STANDBY_BIT

#define MAX37190_GLOBALCONFIGURATION_STANDBY_BIT   BIT(7)

◆ MAX37190_PWMFREQUENCY_PWM1TO3_LENGTH

#define MAX37190_PWMFREQUENCY_PWM1TO3_LENGTH   4

◆ MAX37190_PWMFREQUENCY_PWM1TO3_POS

#define MAX37190_PWMFREQUENCY_PWM1TO3_POS   0

◆ MAX37190_PWMFREQUENCY_PWM4TO6_POS

#define MAX37190_PWMFREQUENCY_PWM4TO6_POS   4

◆ MAX37190_PWMFREQUENCY_PWM_LENGTH

#define MAX37190_PWMFREQUENCY_PWM_LENGTH   4

◆ MAX37190_REGISTER_FANCONFIGURATION

#define MAX37190_REGISTER_FANCONFIGURATION ( channel)
Value:
(0x02 + channel)

◆ MAX37190_REGISTER_FANFAULTSTATUS1

#define MAX37190_REGISTER_FANFAULTSTATUS1   0x11

◆ MAX37190_REGISTER_GLOBALCONFIGURATION

#define MAX37190_REGISTER_GLOBALCONFIGURATION   0x00

◆ MAX37190_REGISTER_PWMFREQUENCY

#define MAX37190_REGISTER_PWMFREQUENCY   0x01

◆ MAX37190_REGISTER_TACHCOUNTMSB

#define MAX37190_REGISTER_TACHCOUNTMSB ( channel)
Value:
(0x18 + 2 * channel)