Macros
Exported Macros
Collaboration diagram for Exported Macros:

Macros

#define POS_VAL(VAL)   (POSITION_VAL(VAL) - 4)
 
#define VOLUME_IN_CONVERT(Volume)   (((Volume) >= 100)? 239:((uint8_t)(((Volume) * 239) / 100)))
 
#define VOLUME_OUT_CONVERT(Volume)   (((Volume) > 100)? 63:((uint8_t)(((Volume) * 63) / 100)))
 

Detailed Description

Macro Definition Documentation

◆ POS_VAL

#define POS_VAL (   VAL)    (POSITION_VAL(VAL) - 4)

Definition at line 317 of file stm32h747i_discovery_audio.h.

◆ VOLUME_IN_CONVERT

#define VOLUME_IN_CONVERT (   Volume)    (((Volume) >= 100)? 239:((uint8_t)(((Volume) * 239) / 100)))

Definition at line 319 of file stm32h747i_discovery_audio.h.

◆ VOLUME_OUT_CONVERT

#define VOLUME_OUT_CONVERT (   Volume)    (((Volume) > 100)? 63:((uint8_t)(((Volume) * 63) / 100)))

Definition at line 318 of file stm32h747i_discovery_audio.h.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:09