![]() |
ISF
2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
|
The isf_util.h file contains the utility method declarations and macros. More...
#include "isf_types.h"
Go to the source code of this file.
Macros | |
#define | ISPF_UTIL_H_ |
#define | ISF_MEM_CPY(src, dest, number_of_bytes) isf_mem_copy((src), (dest), (number_of_bytes)) |
Macro for the memory copy. More... | |
Functions | |
uint32 | bitrev (uint32 x) |
This function reverse the bits of a double word. More... | |
uint32 | ff1 (uint32 doubleword) |
find first-in. More... | |
uint32 | ff1_lsb (uint32 doubleword) |
find first-in form LSB. More... | |
void | isf_mem_copy (void *src, void *dest, uint32 size) |
memory copy More... | |
uint32 | isf_time_util_get_usec (void) |
elapsed time in microseconds More... | |
uint32 | isf_swap4byte (uint32 n) |
4 byte swapping method More... | |
uint16 | isf_swap2byte (uint16 n) |
2 byte swapping method More... | |
The isf_util.h file contains the utility method declarations and macros.
Definition in file isf_util.h.
#define ISF_MEM_CPY | ( | src, | |
dest, | |||
number_of_bytes | |||
) | isf_mem_copy((src), (dest), (number_of_bytes)) |
Macro for the memory copy.
Definition at line 68 of file isf_util.h.
Referenced by fsl_95000_spi_slave_read_postprocess(), fsl_95000_spi_slave_write_preprocess(), fsl_955x_spi_slave_read_postprocess(), fsl_955x_spi_slave_write_preprocess(), fsl_gauss_spi_slave_read_postprocess(), fsl_gauss_spi_slave_write_preprocess(), fsl_leon_spi_slave_read_postprocess(), fsl_leon_spi_slave_write_preprocess(), fsl_veryon_spi_slave_read_postprocess(), fsl_veryon_spi_slave_write_preprocess(), rli_spi_slave_read_postprocess(), and rli_spi_slave_write_preprocess().
#define ISPF_UTIL_H_ |
Definition at line 9 of file isf_util.h.
This function reverse the bits of a double word.
It provides minimum traverse. The complexity is less than O(n).
[in] | x | The input value to be reversed. |
Definition at line 18 of file isf_util.c.
find first-in.
Its finds the position of the first bit set in a double word from MSB.
[in] | doubleword | The input value to be processed. |
Definition at line 28 of file isf_util.c.
Referenced by get_config_bits().
find first-in form LSB.
Its finds the position of the first bit set in a double word from LSB.
[in] | doubleword | The input value to be processed. |
Definition at line 42 of file isf_util.c.
void isf_mem_copy | ( | void * | src, |
void * | dest, | ||
uint32 | size | ||
) |
memory copy
Its copies the memory contents from source to destination.
[in] | src | Pointer to the source. |
[in] | dest | Pointer to the destination. |
[in] | size | Number of bytes to copied. |
Definition at line 128 of file isf_util.c.
Referenced by isf_fifo_data_copy().
2 byte swapping method
Definition at line 156 of file isf_util.c.
Referenced by fsl_fxas21002_i2cspi_3D_gyro_PeriodicCallback(), fsl_fxls8952_i2c_3D_accel_PeriodicCallback(), fsl_fxos8700_i2cspi_6D_AccMag_PeriodicCallback(), and fsl_mag3110_i2c_3D_mag_PeriodicCallback().
4 byte swapping method
Definition at line 143 of file isf_util.c.
Referenced by App1_ci_app_callback(), and fsl_fxlc95000_Configure().
uint32 isf_time_util_get_usec | ( | void | ) |
elapsed time in microseconds
Its returns the elapsed time as recorded by MQX rtos.
elapsed time in microseconds
This API call uses the RTOS services to calculate and return the elapsed time since the system started running. Note that if the elapsed time has exceeded a 32bit value, that is 2^32-1 or 4294.96 seconds, then the time elapsed will rollover and start at zero.
Definition at line 55 of file isf_util.c.
References SysTick.