![]() |
ISF
2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
|
rli_Project.c is an embedded application written using the ISF to demonstrate the functionality of the rli I2C magnetometer sensor. More...
#include <mqxlite.h>
#include <lwevent.h>
#include "isf_target.h"
#include "isf_types.h"
#include "isf.h"
#include "isf_init.h"
#include "isf_ci.h"
#include "isf_pm.h"
#include "isf_devmsg.h"
#include "isf_sysconf_comms.h"
#include "isf_rli.h"
#include "fsl_i2c_master_driver.h"
Go to the source code of this file.
Data Structures | |
struct | rliConfigRegister_t |
struct | rliAppStatus_t |
rli application configuration buffer format. More... | |
struct | rliAppState_t |
struct | device_cmd_packet_t |
rli overall application state buffer format. More... | |
Macros | |
#define | MQX_DISABLE_CONFIG_CHECK 1 |
#define | SENSOR_DATA_READY_EVENT ((uint32)(1 << 10)) |
#define | RLI_COMM_BUFFER_SIZE (255) |
#define | SET_FIELD(name, val) (((val)<<name##_SHIFT)&(name##_MASK)) |
Macro that extracts one of the fields below. More... | |
#define | GET_FIELD(name, val) ((val&name##_MASK)>>name##_SHIFT) |
Enumerations | |
enum | { CI_CMD_DEVICE_WRITE = (CI_CMD_RESET_APP+1), CI_CMD_DEVICE_READ } |
enum | { RLI_APP_STATE_CLOSED = 0, RLI_APP_STATE_OPEN = 1, RLI_APP_STATE_ERROR = 0xFF } |
enum | { FSL_RLI_APP_ID = 2 } |
Functions | |
ci_response_t | rli_ci_app_callback (ci_host_cmd_packet_t *pHostPacket, ci_app_resp_packet_t *pAppPacket) |
void | rli_app_task (void) |
int32 | open_channel (rliAppState_t *appState) |
int32 | close_channel (rliAppState_t *appState) |
int32 | device_connect (rliAppState_t *appState) |
int32 | device_disconnect (rliAppState_t *appState) |
Variables | |
uint8_t | rcvBuffer_t [RLI_COMM_BUFFER_SIZE] |
uint8_t | cmdBuffer_t [RLI_COMM_BUFFER_SIZE] |
MQX_INITIALIZATION_STRUCT | MQX_init_struct |
This data structure/variable holds the complete state of the rli magnetometer sensor embedded application. More... | |
rli_Project.c is an embedded application written using the ISF to demonstrate the functionality of the rli I2C magnetometer sensor.
The rli_project.c is a working example of an ISF embedded application that enables host configuration of the rli I2C magnetometer sensor. This application uses the ISF Command Interpreter directly. It can be easily used as a starting point for modifications to allow anyone to write their own embedded application. The source code has been commented to explain the various parts of the application.
Definition in file rli_project.c.