![]() |
ISF
2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
|
Go to the source code of this file.
Functions | |
uint32 | bitrev (uint32 doubleword) |
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... | |
uint32 | isf_time_util_get_usec (void) |
This API returns the time in microseconds. More... | |
void | isf_mem_copy (void *src, void *dest, uint32 size) |
memory copy More... | |
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 13 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 23 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 37 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 99 of file isf_util.c.
Referenced by isf_fifo_data_copy().
uint32 isf_time_util_get_usec | ( | void | ) |
This API returns the time in microseconds.
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 52 of file isf_util.c.
Referenced by fsl_fxas21002_i2cspi_3D_gyro_PeriodicCallback(), fsl_fxls8471_i2cspi_3D_accel_PeriodicCallback(), fsl_fxos8700_i2cspi_6D_AccMag_PeriodicCallback(), fsl_mag3110_i2c_3D_mag_PeriodicCallback(), fsl_mma865x_i2c_3D_accel_PeriodicCallback(), fsl_mpl3115_i2c_1D_press_PeriodicCallback(), and isr_bm_callback_tmr().