![]() |
ISF
2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
|
Main ISF header file. Contains code common to all ISF components. More...
Go to the source code of this file.
Data Structures | |
struct | isf_lib_info_t |
This structure holds the ISF library information such as version and part number. More... | |
struct | device_info_t |
This structure holds the ROM device information such as version and part number and is returned by the _fw_device_info_get() command. More... | |
Macros | |
#define | MAX_ISF_APPLICATIONS (32) |
Maximum number of applications. More... | |
#define | APP_ID_NULL (0) |
Null application ID. More... | |
#define | USER_APP_ID_START (ISF_APP_ID_LAST) |
#define | ISF_TASK_INDEX_START (50) |
ISF starting task index. More... | |
Typedefs | |
typedef int32 | isf_status_t |
ISF return status type. More... | |
typedef uint32 | isf_duration_t |
ISF time duration in microseconds. More... | |
Enumerations | |
enum | isf_status_enum { ISF_SUCCESS = 0, ISF_ERR_LIB_INIT = 1 } |
ISF library return status type. More... | |
enum | isf_app_id_enum { ISF_APP_ID_DEV_INFO = 0, ISF_APP_ID_MBOX = 1, ISF_APP_ID_LAST } |
ISF application number. More... | |
Functions | |
isf_lib_info_t * | isf_lib_get_info (void) |
API ISF library get information. More... | |
isf_status_t | isf_lib_init (void *pNull) |
API ISF library get information. More... | |
void | _fw_device_info_get (device_info_t *info_ptr) |
uint32 | isf_time_util_get_usec (void) |
This API returns the time in microseconds. More... | |
Main ISF header file. Contains code common to all ISF components.
Definition in file isf.h.
#define APP_ID_NULL (0) |
Null application ID.
Value for null application ID.
Definition at line 78 of file isf.h.
Referenced by ci_qr_update(), and ci_update_first_data_mb().
#define ISF_TASK_INDEX_START (50) |
#define MAX_ISF_APPLICATIONS (32) |
Maximum number of applications.
The maximum number of applications that can exists. Note
that the application id can be anywhere between APP_ID_NULL and
NO_APP_FBID_INDX, but the maximum number of those applications
is limited to the value set here.
Definition at line 70 of file isf.h.
Referenced by ci_mbox_init().
#define USER_APP_ID_START (ISF_APP_ID_LAST) |
enum isf_app_id_enum |
enum isf_status_enum |
void _fw_device_info_get | ( | device_info_t * | info_ptr | ) |
Definition at line 68 of file isf.c.
References device_info_t::build_code, isf_lib_info_t::buildCode, device_info_t::fw_version, isf_lib_get_info(), isf_lib_info_t::majorVersion, isf_lib_info_t::minorVersion, device_info_t::part_number, and isf_lib_info_t::partNumber.
Referenced by ci_mbox_init(), and isf_app_callback_dev_info().
isf_lib_info_t* isf_lib_get_info | ( | void | ) |
API ISF library get information.
The isf_lib_get_info() function is called by an application that needs
retrieve library version and part number that the library is targeted for.
Definition at line 34 of file isf.c.
Referenced by _fw_device_info_get().
isf_status_t isf_lib_init | ( | void * | pOptions | ) |
API ISF library get information.
The isf_lib_get_info() function is called by an application that needs
retrieve library version and part number that the library is targeted for.
API ISF library get information.
Definition at line 18 of file isf_init.c.
Referenced by TaskApp1_task().
uint32 isf_time_util_get_usec | ( | void | ) |
This API returns the 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().