18 #define MQX_DISABLE_CONFIG_CHECK 1
42 #define SENSOR_DATA_READY_EVENT ((uint32)(1 << 10))
43 #define RLI_COMM_BUFFER_SIZE (255)
59 #define SET_FIELD(name,val) (((val)<<name##_SHIFT)&(name##_MASK))
60 #define GET_FIELD(name,val) ((val&name##_MASK)>>name##_SHIFT)
155 switch(pHostPacket->
cmd)
203 if (pHostPacket->
byte_cnt > size ) {
268 if (pDeviceCmd->
nWrite > 0) {
319 if (NULL != appState->
pHandle){
int32 device_disconnect(rliAppState_t *appState)
ISF board support header files.
This file defines the system configuration for the communication channel.
unsigned char uint8
This defines uint8 as unsigned char.
isf_status_t isf_rli_close(RLI_DEV_HANDLE *apRLIDeviceHandle)
This function closes the RLI connection.
fsl_i2c_master_driver.h defines structures and types for the i2c master driver.
uint8_t cmdBuffer_t[RLI_COMM_BUFFER_SIZE]
rli overall application state buffer format.
int32 close_channel(rliAppState_t *appState)
Information necessary to communicate with an I2C slave device.
MQX_INITIALIZATION_STRUCT MQX_init_struct
This data structure/variable holds the complete state of the rli magnetometer sensor embedded applica...
RLI_CHANNEL_HANDLE * isf_rli_init(uint32 aChannelId)
This function initializes a register level interface.
unsigned long uint32
This defines uint32 as unsigned long.
isf_pm.h describes the API definitions, types, and macros for the Intelligent Sensing Framework (ISF)...
The isf_types.h file contains the ISF data type definitions and some of the globally used macros...
int32 device_connect(rliAppState_t *appState)
RLI_CHANNEL_HANDLE * pChannelDescriptor
#define RLI_COMM_BUFFER_SIZE
uint8_t rcvBuffer_t[RLI_COMM_BUFFER_SIZE]
uint32 isf_ci_app_read(uint8 aAppId, uint32 anumBytes, uint8 *apDst)
This API reads data from the host via the mailboxes.
uint32 isf_ci_app_write(uint8 aAppId, uint32 anumBytes, uint8 *apSrc)
This API writes data to the host via the mailboxes.
isf_status_t isf_rli_write(RLI_DEV_HANDLE *apRLIDeviceHandle, int32 startAddress, uint32 aNbyteWrite, uint8 *apWriteBuffer)
This function writes to the device registers.
ci_response_t rli_ci_app_callback(ci_host_cmd_packet_t *pHostPacket, ci_app_resp_packet_t *pAppPacket)
int32 open_channel(rliAppState_t *appState)
isf_status_t isf_rli_deint(RLI_CHANNEL_HANDLE *apRLIChannelHandle)
This function de-initialize the RLI channel.
long int32
This defines int32 as long.
Main ISF header file. Contains code common to all ISF components.
rli application configuration buffer format.
API definitions, types, and macros for the Intelligent Sensing Framework (ISF) Command Interpreter (C...
rliConfigRegister_t CfgBuffer
Application configuration information.
ci_status_t isf_ci_qr_update(uint8 aAppId, int8 anumBytes, uint8 *apSrc)
This API updates the Quick-Read mailboxes.
The isf_init.h file contains the task initialization attributes required for initialization of the fo...
unsigned short uint16
This defines uint16 as unsigned short.
uint8_t cmdBuffer[RLI_COMM_BUFFER_SIZE]
This structure enables an application to read from or write to the host.
uint8_t rcvBuffer[RLI_COMM_BUFFER_SIZE]
This structure contains host command information.
isf_status_t isf_rli_read(RLI_DEV_HANDLE *apRLIDeviceHandle, int32 startAddress, uint32 aNbyteRead, uint8 *apReadBuffer)
This function reads from the device registers.
isf_devmsg.h defines the API definitions and types for the Intelligent Sensing (ISF) Device Messaging...
ci_response_enum
These are the CI errors provided to the host.
RLI_DEV_HANDLE * isf_rli_open(RLI_CHANNEL_HANDLE *apRLIChannelHandle, void *apSlaveInfo)
This function creates a RLI connection handle at a specified device address.
comm_Id_t dm_ChannelId_t
This typedef is a numeric channel identifier index into an array of channels in the system...