Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F60474189
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
Tue, Apr 30, 12:14
Size
875 B
Mime Type
text/x-c
Expires
Thu, May 2, 12:14 (2 d)
Engine
blob
Format
Raw Data
Handle
17356747
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