ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
FXLC95000_1 module documentation

Macros

#define FXLC95000_1_DATA_TYPE   fxlc95000_DataBuffer_t
 
#define FXLC95000_1_SAMPLE_OFFSET   (16)
 
#define FXLC95000_1_SAMPLE_SIZE   (10)
 
#define FXLC95000_1_CONFIG_REGISTER_CMD_OFFSET   (0)
 
#define FXLC95000_1_CONFIG_REGISTER_READ_OFFSET   (4)
 
#define FXLC95000_1_CONFIG_REGISTER_SIZE   (sizeof(fxlc95000_appConfigRegister_t))
 
#define FXLC95000_1_ACC_FLOAT_CONVERSION_FACTOR   (0.000061035156)
 
#define FXLC95000_1_ACC_ACCEL_RANGE_2G   (0x40)
 
#define FXLC95000_1_ACC_ACCEL_RANGE_4G   (0x80)
 
#define FXLC95000_1_ACC_ACCEL_RANGE_8G   (0xC0)
 
#define FXLC95000_1_ACC_MODE_ACCEL_ONLY   (0x00)
 
#define FXLC95000_1_ACC_ACCEL_RESOLUTION_16_BIT   (0x00)
 

Variables

uint8 FXLC95000_1_ConfigRegisterBuffer [FXLC95000_1_CONFIG_REGISTER_SIZE]
 
const uint8 const BootToFlash [] = { 0x29, 0x00, 0xFF, 0xFF, 0xFF, 0xFF }
 
const uint8 const ConfigureMBoxCmd1 [] = { 0x01, 0x02, 0x18, 0x14, 0x02, 0x03, 0x02, 0x02, 0x02, 0x01, 0x02, 0x00, 0x02, 0x05, 0x02, 0x04, 0x02, 0x07, 0x02, 0x06, 0x02, 0x09, 0x02, 0x08 }
 
const uint8 const ReadConfigRegistersCmd [] = { 0x02, 0x01, FXLC95000_1_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_1_CONFIG_REGISTER_SIZE }
 
const uint8 const QuickReadInterruptEnable [] = { 0x01, 0x02, 0x39, 0x01, 0x03 }
 
const uint8 const QuickReadInterruptDisable [] = { 0x01, 0x02, 0x39, 0x01, 0x02 }
 
const uint8 const StartDataCmd [] = { 0x02, 0x02, 0x00, 0x01, 0x52 }
 
const uint8 const EndDataCmd [] = { 0x02, 0x02, 0x00, 0x01, 0x51 }
 
const uint8 const ShutdownCmd [] = { 0x02, 0x02, 0x00, 0x01, 0x50 }
 
const uint8 const ConfigWritePreamble [] = { 0x02, 0x02, FXLC95000_1_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_1_CONFIG_REGISTER_SIZE }
 
const uint8 const UnprotectFlash [] = { 0x40, 0x00 }
 
const uint8 const EraseMainFlashArray [] = { 0x12, 0xC5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF }
 
const uint8 const ProtectFlash [] = { 0x38, 0x00 }
 
const fxlc95000_Command_t const InitializeSequence []
 
const fxlc95000_Command_t const ReadConfigRegistersSequence []
 
const fxlc95000_Command_t const ConfigureSequence []
 
const fxlc95000_Command_t const StartDataSequence []
 
const fxlc95000_Command_t const EndDataSequence []
 
const fxlc95000_Command_t const ShutdownSequence []
 
const fxlc95000_Command_t const WriteConfigPreambleSequence []
 
const fxlc95000_Command_t const FlashPreprocessSequence []
 
const fxlc95000_Command_t const FlashPostprocessSequence []
 
fxlc95000_Sensor_Specific_Settings_t FXLC95000_1_Sensor_Specific_Config
 This allows access to the sensor specific configuration for the target sensor. More...
 
const isf_dsa_Adapter_t FXLC95000_1_Adapter
 This creates the sensor adapter instance for the target sensor. More...
 
const i2c_device_t FXLC95000_1_DeviceInfo
 This allows access to the sensor communications specific configuration. More...
 
fxlc95000_Sensor_Specific_Settings_t FXLC95000_1_Sensor_Specific_Config
 This allows access to the sensor specific configuration for the target sensor. More...
 
const isf_dsa_Adapter_t FXLC95000_1_Adapter
 This allows access to the sensor adapter instance for the target sensor. More...
 
const i2c_device_t FXLC95000_1_DeviceInfo
 This allows access to the sensor communications specific configuration. More...
 

Detailed Description

Macro Definition Documentation

#define FXLC95000_1_ACC_ACCEL_RANGE_2G   (0x40)

Definition at line 58 of file FXLC95000_1.h.

#define FXLC95000_1_ACC_ACCEL_RANGE_4G   (0x80)

Definition at line 59 of file FXLC95000_1.h.

#define FXLC95000_1_ACC_ACCEL_RANGE_8G   (0xC0)

Definition at line 60 of file FXLC95000_1.h.

#define FXLC95000_1_ACC_ACCEL_RESOLUTION_16_BIT   (0x00)

Definition at line 62 of file FXLC95000_1.h.

#define FXLC95000_1_ACC_FLOAT_CONVERSION_FACTOR   (0.000061035156)

Definition at line 57 of file FXLC95000_1.h.

#define FXLC95000_1_ACC_MODE_ACCEL_ONLY   (0x00)

Definition at line 61 of file FXLC95000_1.h.

#define FXLC95000_1_CONFIG_REGISTER_CMD_OFFSET   (0)

Definition at line 53 of file FXLC95000_1.h.

#define FXLC95000_1_CONFIG_REGISTER_READ_OFFSET   (4)

Definition at line 54 of file FXLC95000_1.h.

#define FXLC95000_1_CONFIG_REGISTER_SIZE   (sizeof(fxlc95000_appConfigRegister_t))

Definition at line 55 of file FXLC95000_1.h.

#define FXLC95000_1_DATA_TYPE   fxlc95000_DataBuffer_t

Definition at line 50 of file FXLC95000_1.h.

#define FXLC95000_1_SAMPLE_OFFSET   (16)

Definition at line 51 of file FXLC95000_1.h.

#define FXLC95000_1_SAMPLE_SIZE   (10)

Definition at line 52 of file FXLC95000_1.h.

Variable Documentation

const uint8 const BootToFlash[] = { 0x29, 0x00, 0xFF, 0xFF, 0xFF, 0xFF }

Definition at line 44 of file FXLC95000_1.c.

const uint8 const ConfigureMBoxCmd1[] = { 0x01, 0x02, 0x18, 0x14, 0x02, 0x03, 0x02, 0x02, 0x02, 0x01, 0x02, 0x00, 0x02, 0x05, 0x02, 0x04, 0x02, 0x07, 0x02, 0x06, 0x02, 0x09, 0x02, 0x08 }

Definition at line 45 of file FXLC95000_1.c.

const fxlc95000_Command_t const ConfigureSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(ConfigureMBoxCmd1),
.pWriteBuffer = (uint8* const)&ConfigureMBoxCmd1
},
{
.offset = 0,
.nByteWrite = sizeof(QuickReadInterruptEnable),
.pWriteBuffer = (uint8* const)&QuickReadInterruptEnable
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const QuickReadInterruptEnable[]
Definition: FXLC95000_1.c:47
const uint8 const ConfigureMBoxCmd1[]
Definition: FXLC95000_1.c:45

Definition at line 75 of file FXLC95000_1.c.

const uint8 const ConfigWritePreamble[] = { 0x02, 0x02, FXLC95000_1_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_1_CONFIG_REGISTER_SIZE }

Definition at line 52 of file FXLC95000_1.c.

const uint8 const EndDataCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x51 }

Definition at line 50 of file FXLC95000_1.c.

const fxlc95000_Command_t const EndDataSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(EndDataCmd),
.pWriteBuffer = (uint8* const)&EndDataCmd
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const EndDataCmd[]
Definition: FXLC95000_1.c:50

Definition at line 98 of file FXLC95000_1.c.

const uint8 const EraseMainFlashArray[] = { 0x12, 0xC5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF }

Definition at line 54 of file FXLC95000_1.c.

const fxlc95000_Command_t const FlashPostprocessSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(ProtectFlash),
.pWriteBuffer = (uint8* const)&ProtectFlash
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const ProtectFlash[]
Definition: FXLC95000_1.c:55

Definition at line 140 of file FXLC95000_1.c.

const fxlc95000_Command_t const FlashPreprocessSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(UnprotectFlash),
.pWriteBuffer = (uint8* const)&UnprotectFlash
},
{
.offset = 0,
.nByteWrite = sizeof(EraseMainFlashArray),
.pWriteBuffer = (uint8* const)&EraseMainFlashArray
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const EraseMainFlashArray[]
Definition: FXLC95000_1.c:54
const uint8 const UnprotectFlash[]
Definition: FXLC95000_1.c:53

Definition at line 126 of file FXLC95000_1.c.

const isf_dsa_Adapter_t FXLC95000_1_Adapter

This allows access to the sensor adapter instance for the target sensor.

This allows access to the sensor adapter instance for the target sensor.

Definition at line 180 of file FXLC95000_1.c.

const isf_dsa_Adapter_t FXLC95000_1_Adapter
Initial value:
=
{
.devInfo.pSupportedSensorTypes = fxlc95000_SupportedSensorTypes,
.devInfo.pSupportedSensorDataTypes = fxlc95000_SupportedDataTypes,
.devInfo.nNativeDataSetSize = sizeof(fxlc95000_DataBuffer_t),
.control.Initialize = &fsl_fxlc95000_Initialize,
.control.ValidateSettings = &fsl_fxlc95000_ValidateSettings,
.control.Configure = &fsl_fxlc95000_Configure,
.control.StartData = &fsl_fxlc95000_StartData,
.control.EndData = &fsl_fxlc95000_EndData,
.control.Calibrate = &fsl_fxlc95000_Calibrate,
.control.Shutdown = &fsl_fxlc95000_Shutdown,
.control.Flash = &fsl_fxlc95000_Flash,
.control.Convert = &fsl_fxlc95000_Convert
}
isf_dsa_status_t fsl_fxlc95000_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
isf_dsa_status_t fsl_fxlc95000_Flash(isf_SensorHandle_t *pSensorHandle, void *pFlashData, uint8 numBytes)
isf_SensorDataTypes_t fxlc95000_SupportedDataTypes[]
This structure defines the dummy DSA data buffer format.
isf_dsa_status_t fsl_fxlc95000_Convert(volatile isf_SensorHandle_t *pSensorHandle, isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType, void *pNativeSample, void *pConvertedSample, int32 *numBytes)
This function converts the raw sample data to the desired output type.
isf_dsa_status_t fsl_fxlc95000_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_dsa_status_t fsl_fxlc95000_EndData(isf_SensorHandle_t *pSensorHandle)
isf_SensorTypes_t fxlc95000_SupportedSensorTypes[]
Supported sensor and data types.
isf_dsa_status_t fsl_fxlc95000_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSubSettings)
isf_dsa_status_t fsl_fxlc95000_StartData(isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t fsl_fxlc95000_Initialize(isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t fsl_fxlc95000_Shutdown(isf_SensorHandle_t *pSensorHandle)

This creates the sensor adapter instance for the target sensor.

This allows access to the sensor adapter instance for the target sensor.

Definition at line 180 of file FXLC95000_1.c.

uint8 FXLC95000_1_ConfigRegisterBuffer[FXLC95000_1_CONFIG_REGISTER_SIZE]

Definition at line 42 of file FXLC95000_1.c.

const i2c_device_t FXLC95000_1_DeviceInfo

This allows access to the sensor communications specific configuration.

Definition at line 196 of file FXLC95000_1.c.

const i2c_device_t FXLC95000_1_DeviceInfo
Initial value:
=
{
.baudRate_kbps = 400,
.address = 76
}

This allows access to the sensor communications specific configuration.

Definition at line 196 of file FXLC95000_1.c.

fxlc95000_Sensor_Specific_Settings_t FXLC95000_1_Sensor_Specific_Config

This allows access to the sensor specific configuration for the target sensor.

Definition at line 149 of file FXLC95000_1.c.

fxlc95000_Sensor_Specific_Settings_t FXLC95000_1_Sensor_Specific_Config
Initial value:
=
{
.sampleDataOffset = FXLC95000_1_SAMPLE_OFFSET,
.sampleDataSize = FXLC95000_1_SAMPLE_SIZE,
.configRegisterReadOffset = FXLC95000_1_CONFIG_REGISTER_READ_OFFSET,
.configRegisterReadSize = FXLC95000_1_CONFIG_REGISTER_SIZE,
.engFloatConversionFactor = FXLC95000_1_ACC_FLOAT_CONVERSION_FACTOR,
.engFixedTotalWidth = 32,
.engFixedIntegerWidth = 16,
.engFixedSignBit = 1,
.writeConfigRegisterPreamble = { .numCommands=sizeof(WriteConfigPreambleSequence)/sizeof(fxlc95000_Command_t),.commands=WriteConfigPreambleSequence},
.readConfigCommands = { .numCommands=sizeof(ReadConfigRegistersSequence)/sizeof(fxlc95000_Command_t),.commands=ReadConfigRegistersSequence},
.initializeCommands = { .numCommands=sizeof(InitializeSequence)/sizeof(fxlc95000_Command_t),.commands=InitializeSequence},
.validateSettingsCommands = { .numCommands=0, .commands=NULL},
.configureCommands = { .numCommands=sizeof(ConfigureSequence)/sizeof(fxlc95000_Command_t), .commands=ConfigureSequence},
.startDataCommands = { .numCommands=sizeof(StartDataSequence)/sizeof(fxlc95000_Command_t), .commands=StartDataSequence},
.endDataCommands = { .numCommands=sizeof(EndDataSequence)/sizeof(fxlc95000_Command_t), .commands=EndDataSequence},
.calibrateCommands = { .numCommands=0, .commands=NULL},
.shutdownCommands = { .numCommands=sizeof(ShutdownSequence)/sizeof(fxlc95000_Command_t), .commands=ShutdownSequence},
.getDataCommands = { .numCommands=0, .commands=NULL},
.flashPreprocessCommands = { .numCommands=sizeof(FlashPreprocessSequence)/sizeof(fxlc95000_Command_t), .commands=FlashPreprocessSequence},
.flashPostprocessCommands = { .numCommands=sizeof(FlashPostprocessSequence)/sizeof(fxlc95000_Command_t), .commands=FlashPostprocessSequence}
}
const fxlc95000_Command_t const StartDataSequence[]
Definition: FXLC95000_1.c:89
#define FXLC95000_1_SAMPLE_OFFSET
Definition: FXLC95000_1.h:51
#define FXLC95000_1_SAMPLE_SIZE
Definition: FXLC95000_1.h:52
const fxlc95000_Command_t const ReadConfigRegistersSequence[]
Definition: FXLC95000_1.c:66
#define FXLC95000_1_CONFIG_REGISTER_READ_OFFSET
Definition: FXLC95000_1.h:54
const fxlc95000_Command_t const WriteConfigPreambleSequence[]
Definition: FXLC95000_1.c:117
#define FXLC95000_1_CONFIG_REGISTER_SIZE
Definition: FXLC95000_1.h:55
const fxlc95000_Command_t const FlashPreprocessSequence[]
Definition: FXLC95000_1.c:126
const fxlc95000_Command_t const InitializeSequence[]
Definition: FXLC95000_1.c:57
#define FXLC95000_1_ACC_ACCEL_RESOLUTION_16_BIT
Definition: FXLC95000_1.h:62
const fxlc95000_Command_t const ConfigureSequence[]
Definition: FXLC95000_1.c:75
#define FXLC95000_1_ACC_ACCEL_RANGE_2G
Definition: FXLC95000_1.h:58
#define FXLC95000_1_ACC_MODE_ACCEL_ONLY
Definition: FXLC95000_1.h:61
const fxlc95000_Command_t const ShutdownSequence[]
Definition: FXLC95000_1.c:108
const fxlc95000_Command_t const EndDataSequence[]
Definition: FXLC95000_1.c:98
#define FXLC95000_1_ACC_FLOAT_CONVERSION_FACTOR
Definition: FXLC95000_1.h:57
const fxlc95000_Command_t const FlashPostprocessSequence[]
Definition: FXLC95000_1.c:140

This allows access to the sensor specific configuration for the target sensor.

Definition at line 149 of file FXLC95000_1.c.

const fxlc95000_Command_t const InitializeSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(BootToFlash),
.pWriteBuffer = (uint8* const)&BootToFlash
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const BootToFlash[]
Definition: FXLC95000_1.c:44

Definition at line 57 of file FXLC95000_1.c.

const uint8 const ProtectFlash[] = { 0x38, 0x00 }

Definition at line 55 of file FXLC95000_1.c.

const uint8 const QuickReadInterruptDisable[] = { 0x01, 0x02, 0x39, 0x01, 0x02 }

Definition at line 48 of file FXLC95000_1.c.

const uint8 const QuickReadInterruptEnable[] = { 0x01, 0x02, 0x39, 0x01, 0x03 }

Definition at line 47 of file FXLC95000_1.c.

const uint8 const ReadConfigRegistersCmd[] = { 0x02, 0x01, FXLC95000_1_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_1_CONFIG_REGISTER_SIZE }

Definition at line 46 of file FXLC95000_1.c.

const fxlc95000_Command_t const ReadConfigRegistersSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(ReadConfigRegistersCmd),
.pWriteBuffer = (uint8* const)&ReadConfigRegistersCmd
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const ReadConfigRegistersCmd[]
Definition: FXLC95000_1.c:46

Definition at line 66 of file FXLC95000_1.c.

const uint8 const ShutdownCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x50 }

Definition at line 51 of file FXLC95000_1.c.

const fxlc95000_Command_t const ShutdownSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(ShutdownCmd),
.pWriteBuffer = (uint8* const)&ShutdownCmd
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const ShutdownCmd[]
Definition: FXLC95000_1.c:51

Definition at line 108 of file FXLC95000_1.c.

const uint8 const StartDataCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x52 }

Definition at line 49 of file FXLC95000_1.c.

const fxlc95000_Command_t const StartDataSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(StartDataCmd),
.pWriteBuffer = (uint8* const)&StartDataCmd
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const StartDataCmd[]
Definition: FXLC95000_1.c:49

Definition at line 89 of file FXLC95000_1.c.

const uint8 const UnprotectFlash[] = { 0x40, 0x00 }

Definition at line 53 of file FXLC95000_1.c.

const fxlc95000_Command_t const WriteConfigPreambleSequence[]
Initial value:
=
{
{
.offset = 0,
.nByteWrite = sizeof(ConfigWritePreamble),
.pWriteBuffer = (uint8* const)&ConfigWritePreamble
}
}
unsigned char uint8
Definition: isf_types.h:76
const uint8 const ConfigWritePreamble[]
Definition: FXLC95000_1.c:52

Definition at line 117 of file FXLC95000_1.c.