| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

Macros | Variables
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
QuickReadInterruptEnable
const uint8 const QuickReadInterruptEnable[]
Definition: FXLC95000_1.c:47
ConfigureMBoxCmd1
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
EndDataCmd
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
ProtectFlash
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
EraseMainFlashArray
const uint8 const EraseMainFlashArray[]
Definition: FXLC95000_1.c:54
UnprotectFlash
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
}
fsl_fxlc95000_Calibrate
isf_dsa_status_t fsl_fxlc95000_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
Definition: fsl_fxlc95000_i2cspi_pedo.c:376
fsl_fxlc95000_Flash
isf_dsa_status_t fsl_fxlc95000_Flash(isf_SensorHandle_t *pSensorHandle, void *pFlashData, uint8 numBytes)
Definition: fsl_fxlc95000_i2cspi_pedo.c:530
fxlc95000_SupportedDataTypes
isf_SensorDataTypes_t fxlc95000_SupportedDataTypes[]
Definition: fsl_fxlc95000_i2cspi_pedo.c:28
fxlc95000_DataBuffer_t
This structure defines the dummy DSA data buffer format.
Definition: fsl_fxlc95000_i2cspi_pedo.h:28
fsl_fxlc95000_Convert
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.
Definition: fsl_fxlc95000_i2cspi_pedo.c:652
fsl_fxlc95000_Configure
isf_dsa_status_t fsl_fxlc95000_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
Definition: fsl_fxlc95000_i2cspi_pedo.c:166
fsl_fxlc95000_EndData
isf_dsa_status_t fsl_fxlc95000_EndData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:315
fxlc95000_SupportedSensorTypes
isf_SensorTypes_t fxlc95000_SupportedSensorTypes[]
Supported sensor and data types.
Definition: fsl_fxlc95000_i2cspi_pedo.c:27
fsl_fxlc95000_ValidateSettings
isf_dsa_status_t fsl_fxlc95000_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSubSettings)
Definition: fsl_fxlc95000_i2cspi_pedo.c:133
fsl_fxlc95000_StartData
isf_dsa_status_t fsl_fxlc95000_StartData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:256
fsl_fxlc95000_Initialize
isf_dsa_status_t fsl_fxlc95000_Initialize(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:56
fsl_fxlc95000_Shutdown
isf_dsa_status_t fsl_fxlc95000_Shutdown(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:396

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,
.resolution = FXLC95000_1_ACC_ACCEL_RESOLUTION_16_BIT,
.range = FXLC95000_1_ACC_ACCEL_RANGE_2G,
.mode = FXLC95000_1_ACC_MODE_ACCEL_ONLY,
.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}
}
StartDataSequence
const fxlc95000_Command_t const StartDataSequence[]
Definition: FXLC95000_1.c:89
FXLC95000_1_SAMPLE_OFFSET
#define FXLC95000_1_SAMPLE_OFFSET
Definition: FXLC95000_1.h:51
FXLC95000_1_SAMPLE_SIZE
#define FXLC95000_1_SAMPLE_SIZE
Definition: FXLC95000_1.h:52
ReadConfigRegistersSequence
const fxlc95000_Command_t const ReadConfigRegistersSequence[]
Definition: FXLC95000_1.c:66
FXLC95000_1_CONFIG_REGISTER_READ_OFFSET
#define FXLC95000_1_CONFIG_REGISTER_READ_OFFSET
Definition: FXLC95000_1.h:54
WriteConfigPreambleSequence
const fxlc95000_Command_t const WriteConfigPreambleSequence[]
Definition: FXLC95000_1.c:117
FXLC95000_1_CONFIG_REGISTER_SIZE
#define FXLC95000_1_CONFIG_REGISTER_SIZE
Definition: FXLC95000_1.h:55
FlashPreprocessSequence
const fxlc95000_Command_t const FlashPreprocessSequence[]
Definition: FXLC95000_1.c:126
InitializeSequence
const fxlc95000_Command_t const InitializeSequence[]
Definition: FXLC95000_1.c:57
FXLC95000_1_ACC_ACCEL_RESOLUTION_16_BIT
#define FXLC95000_1_ACC_ACCEL_RESOLUTION_16_BIT
Definition: FXLC95000_1.h:62
fxlc95000_Command_t
Definition: fxlc95000.h:50
ConfigureSequence
const fxlc95000_Command_t const ConfigureSequence[]
Definition: FXLC95000_1.c:75
FXLC95000_1_ACC_ACCEL_RANGE_2G
#define FXLC95000_1_ACC_ACCEL_RANGE_2G
Definition: FXLC95000_1.h:58
FXLC95000_1_ACC_MODE_ACCEL_ONLY
#define FXLC95000_1_ACC_MODE_ACCEL_ONLY
Definition: FXLC95000_1.h:61
ShutdownSequence
const fxlc95000_Command_t const ShutdownSequence[]
Definition: FXLC95000_1.c:108
EndDataSequence
const fxlc95000_Command_t const EndDataSequence[]
Definition: FXLC95000_1.c:98
FXLC95000_1_ACC_FLOAT_CONVERSION_FACTOR
#define FXLC95000_1_ACC_FLOAT_CONVERSION_FACTOR
Definition: FXLC95000_1.h:57
FlashPostprocessSequence
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
BootToFlash
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
ReadConfigRegistersCmd
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
ShutdownCmd
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
StartDataCmd
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
}
}
uint8
unsigned char uint8
Definition: isf_types.h:76
ConfigWritePreamble
const uint8 const ConfigWritePreamble[]
Definition: FXLC95000_1.c:52

Definition at line 117 of file FXLC95000_1.c.

- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.