Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102800775
utils.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 24, 07:49
Size
872 B
Mime Type
text/x-c
Expires
Wed, Feb 26, 07:49 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
24394388
Attached To
R2671 HHRI-software
utils.h
View Options
#ifndef __UTILS_H
#define __UTILS_H
#include "main.h"
/** @defgroup Utils Lib / Utils
* @brief Utility functions and constants.
*
* This module provides functions and constants that may be used at many
* places in the code.
*
* @addtogroup Utils
* @{
*/
#define CPU_TRAPS_ENABLED 1 ///< utils_TrapCpu() will be block forever if 1, or return immediately if 0.
#define SECOND_TO_MICROSECOND 1000000.0f
#define MICROSECOND_TO_SECOND (1.0f/SECOND_TO_MICROSECOND)
void utils_TrapCpu(void);
void utils_DelayUs(uint32_t duration);
void utils_DelayMs(uint32_t duration);
void utils_DelayUs(uint32_t duration);
void utils_DelayMs(uint32_t duration);
void utils_SaturateF(float32_t *val, float32_t min, float32_t max);
void utils_SaturateU(uint32_t *val, uint32_t min, uint32_t max);
float32_t utils_Mean(float32_t *array, int size);
/**
* @}
*/
#endif
Event Timeline
Log In to Comment