![]() |
ISF
2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
|
Macros | |
#define | FSL_SENSOR_SPI_CMD_LENG 0x1 |
#define | FXLC95000_2_DATA_TYPE fxlc95000_DataBuffer_t |
#define | FXLC95000_2_SAMPLE_OFFSET (16) |
#define | FXLC95000_2_SAMPLE_SIZE (10) |
#define | FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET (0) |
#define | FXLC95000_2_CONFIG_REGISTER_READ_OFFSET (4) |
#define | FXLC95000_2_CONFIG_REGISTER_SIZE (sizeof(fxlc95000_appConfigRegister_t)) |
#define | FXLC95000_2_ACC_FLOAT_CONVERSION_FACTOR (0.000061035156) |
#define | FXLC95000_2_ACC_ACCEL_RANGE_2G (0x40) |
#define | FXLC95000_2_ACC_ACCEL_RANGE_4G (0x80) |
#define | FXLC95000_2_ACC_ACCEL_RANGE_8G (0xC0) |
#define | FXLC95000_2_ACC_MODE_ACCEL_ONLY (0x00) |
#define | FXLC95000_2_ACC_ACCEL_RESOLUTION_16_BIT (0x00) |
Functions | |
isf_status_t | fsl_95000_spi_slave_init (void) |
isf_status_t | fsl_95000_spi_slave_write_preprocess (void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer) |
isf_status_t | fsl_95000_spi_slave_write_postprocess (void *pCmdOut) |
isf_status_t | fsl_95000_spi_slave_read_preprocess (void *pCmdOut, uint32 offset, uint32 size) |
isf_status_t | fsl_95000_spi_slave_read_postprocess (void *pCmdOut, void *pDataOut) |
Variables | |
uint8 | FXLC95000_2_ConfigRegisterBuffer [FXLC95000_2_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_2_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_2_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_2_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_2_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_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor. More... | |
const isf_dsa_Adapter_t | FXLC95000_2_Adapter |
This creates the sensor adapter instance for the target sensor. More... | |
spi_master_slaveInfo_t | fsl_spi_sensor_type_FXLC95000_2 |
const spi_master_CommSpecificInfo_t | FXLC95000_2_DeviceInfo |
This allows access to the sensor communications specific configuration. More... | |
fxlc95000_Sensor_Specific_Settings_t | FXLC95000_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor. More... | |
const isf_dsa_Adapter_t | FXLC95000_2_Adapter |
This allows access to the sensor adapter instance for the target sensor. More... | |
const spi_master_CommSpecificInfo_t | FXLC95000_2_DeviceInfo |
This allows access to the sensor communications specific configuration. More... | |
#define FSL_SENSOR_SPI_CMD_LENG 0x1 |
Definition at line 205 of file FXLC95000_2.c.
Referenced by fsl_95000_spi_slave_read_postprocess(), fsl_95000_spi_slave_read_preprocess(), and fsl_95000_spi_slave_write_preprocess().
#define FXLC95000_2_ACC_ACCEL_RANGE_2G (0x40) |
Definition at line 65 of file FXLC95000_2.h.
#define FXLC95000_2_ACC_ACCEL_RANGE_4G (0x80) |
Definition at line 66 of file FXLC95000_2.h.
#define FXLC95000_2_ACC_ACCEL_RANGE_8G (0xC0) |
Definition at line 67 of file FXLC95000_2.h.
#define FXLC95000_2_ACC_ACCEL_RESOLUTION_16_BIT (0x00) |
Definition at line 69 of file FXLC95000_2.h.
#define FXLC95000_2_ACC_FLOAT_CONVERSION_FACTOR (0.000061035156) |
Definition at line 64 of file FXLC95000_2.h.
#define FXLC95000_2_ACC_MODE_ACCEL_ONLY (0x00) |
Definition at line 68 of file FXLC95000_2.h.
#define FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET (0) |
Definition at line 60 of file FXLC95000_2.h.
#define FXLC95000_2_CONFIG_REGISTER_READ_OFFSET (4) |
Definition at line 61 of file FXLC95000_2.h.
#define FXLC95000_2_CONFIG_REGISTER_SIZE (sizeof(fxlc95000_appConfigRegister_t)) |
Definition at line 62 of file FXLC95000_2.h.
#define FXLC95000_2_DATA_TYPE fxlc95000_DataBuffer_t |
Definition at line 57 of file FXLC95000_2.h.
#define FXLC95000_2_SAMPLE_OFFSET (16) |
Definition at line 58 of file FXLC95000_2.h.
#define FXLC95000_2_SAMPLE_SIZE (10) |
Definition at line 59 of file FXLC95000_2.h.
isf_status_t fsl_95000_spi_slave_init | ( | void | ) |
Definition at line 244 of file FXLC95000_2.c.
References ChipSelect_OutConfig0, ISF_SUCCESS, J1_10, J1_11, ResetSensor_OutConfig0, and SPISelect_OutConfig0.
isf_status_t fsl_95000_spi_slave_read_postprocess | ( | void * | pCmdOut, |
void * | pDataOut | ||
) |
Definition at line 315 of file FXLC95000_2.c.
References FSL_SENSOR_SPI_CMD_LENG, ISF_MEM_CPY, ISF_SUCCESS, J1_13, spi_mater_SlaveCmd::pReadBuffer, and spi_mater_SlaveCmd::size.
isf_status_t fsl_95000_spi_slave_read_preprocess | ( | void * | pCmdOut, |
uint32 | offset, | ||
uint32 | size | ||
) |
Definition at line 294 of file FXLC95000_2.c.
References FSL_SENSOR_SPI_CMD_LENG, ISF_SUCCESS, J1_13, spi_mater_SlaveCmd::pReadBuffer, spi_mater_SlaveCmd::pWriteBuffer, and spi_mater_SlaveCmd::size.
isf_status_t fsl_95000_spi_slave_write_postprocess | ( | void * | pCmdOut | ) |
Definition at line 286 of file FXLC95000_2.c.
References ISF_SUCCESS, and J1_13.
isf_status_t fsl_95000_spi_slave_write_preprocess | ( | void * | pCmdOut, |
uint32 | offset, | ||
uint32 | size, | ||
void * | pWritebuffer | ||
) |
Definition at line 262 of file FXLC95000_2.c.
References FSL_SENSOR_SPI_CMD_LENG, ISF_MEM_CPY, ISF_SUCCESS, J1_13, spi_mater_SlaveCmd::pReadBuffer, spi_mater_SlaveCmd::pWriteBuffer, and spi_mater_SlaveCmd::size.
const uint8 const BootToFlash[] = { 0x29, 0x00, 0xFF, 0xFF, 0xFF, 0xFF } |
Definition at line 52 of file FXLC95000_2.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 53 of file FXLC95000_2.c.
const fxlc95000_Command_t const ConfigureSequence[] |
Definition at line 83 of file FXLC95000_2.c.
const uint8 const ConfigWritePreamble[] = { 0x02, 0x02, FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_2_CONFIG_REGISTER_SIZE } |
Definition at line 60 of file FXLC95000_2.c.
const uint8 const EndDataCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x51 } |
Definition at line 58 of file FXLC95000_2.c.
const fxlc95000_Command_t const EndDataSequence[] |
Definition at line 106 of file FXLC95000_2.c.
const uint8 const EraseMainFlashArray[] = { 0x12, 0xC5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF } |
Definition at line 62 of file FXLC95000_2.c.
const fxlc95000_Command_t const FlashPostprocessSequence[] |
Definition at line 148 of file FXLC95000_2.c.
const fxlc95000_Command_t const FlashPreprocessSequence[] |
Definition at line 134 of file FXLC95000_2.c.
spi_master_slaveInfo_t fsl_spi_sensor_type_FXLC95000_2 |
Definition at line 206 of file FXLC95000_2.c.
const isf_dsa_Adapter_t FXLC95000_2_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 188 of file FXLC95000_2.c.
const isf_dsa_Adapter_t FXLC95000_2_Adapter |
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 188 of file FXLC95000_2.c.
uint8 FXLC95000_2_ConfigRegisterBuffer[FXLC95000_2_CONFIG_REGISTER_SIZE] |
Definition at line 50 of file FXLC95000_2.c.
const spi_master_CommSpecificInfo_t FXLC95000_2_DeviceInfo |
This allows access to the sensor communications specific configuration.
Definition at line 214 of file FXLC95000_2.c.
const spi_master_CommSpecificInfo_t FXLC95000_2_DeviceInfo |
This allows access to the sensor communications specific configuration.
Definition at line 214 of file FXLC95000_2.c.
fxlc95000_Sensor_Specific_Settings_t FXLC95000_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor.
Definition at line 157 of file FXLC95000_2.c.
fxlc95000_Sensor_Specific_Settings_t FXLC95000_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor.
Definition at line 157 of file FXLC95000_2.c.
const fxlc95000_Command_t const InitializeSequence[] |
Definition at line 65 of file FXLC95000_2.c.
const uint8 const ProtectFlash[] = { 0x38, 0x00 } |
Definition at line 63 of file FXLC95000_2.c.
const uint8 const QuickReadInterruptDisable[] = { 0x01, 0x02, 0x39, 0x01, 0x02 } |
Definition at line 56 of file FXLC95000_2.c.
const uint8 const QuickReadInterruptEnable[] = { 0x01, 0x02, 0x39, 0x01, 0x03 } |
Definition at line 55 of file FXLC95000_2.c.
const uint8 const ReadConfigRegistersCmd[] = { 0x02, 0x01, FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_2_CONFIG_REGISTER_SIZE } |
Definition at line 54 of file FXLC95000_2.c.
const fxlc95000_Command_t const ReadConfigRegistersSequence[] |
Definition at line 74 of file FXLC95000_2.c.
const uint8 const ShutdownCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x50 } |
Definition at line 59 of file FXLC95000_2.c.
const fxlc95000_Command_t const ShutdownSequence[] |
Definition at line 116 of file FXLC95000_2.c.
const uint8 const StartDataCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x52 } |
Definition at line 57 of file FXLC95000_2.c.
const fxlc95000_Command_t const StartDataSequence[] |
Definition at line 97 of file FXLC95000_2.c.
const uint8 const UnprotectFlash[] = { 0x40, 0x00 } |
Definition at line 61 of file FXLC95000_2.c.
const fxlc95000_Command_t const WriteConfigPreambleSequence[] |
Definition at line 125 of file FXLC95000_2.c.