![]() |
ISF
2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
|
Macros | |
#define | FSL_SENSOR_SPI_CMD_LENG 0x1 |
#define | MMA955x_2_DATA_TYPE mma955x_PedometerNativeData_t |
#define | MMA955x_2_SAMPLE_OFFSET (26) |
#define | MMA955x_2_SAMPLE_SIZE (6) |
#define | MMA955x_2_CONFIG_REGISTER_READ_OFFSET (0) |
#define | MMA955x_2_CONFIG_REGISTER_SIZE (sizeof(mma955x_readConfigResponseBuffer_t)) |
#define | MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_2g (0.000061035156) |
#define | MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_4g (0.000122070312) |
#define | MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_8g (0.000244140624) |
Functions | |
void | mma955xSetSamplingRate (uint32 samplePeriod) |
isf_status_t | fsl_955x_spi_slave_init (void) |
isf_status_t | fsl_955x_spi_slave_write_preprocess (void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer) |
isf_status_t | fsl_955x_spi_slave_write_postprocess (void *pCmdOut) |
isf_status_t | fsl_955x_spi_slave_read_preprocess (void *pCmdOut, uint32 offset, uint32 size) |
isf_status_t | fsl_955x_spi_slave_read_postprocess (void *pCmdOut, void *pDataOut) |
Variables | |
uint8 | MMA955x_2_ConfigRegisterBuffer [MMA955x_2_CONFIG_REGISTER_SIZE] |
uint8 | SelectedSampleRate [] = { 0x06, 0x20, 0x0C, 0x01, 0x00 } |
uint8 | SelectedAFEPriority [] = { 0x01, 0x20, 0x32, 0x01, 0x00 } |
uint8 | SelectedMBoxPriority [] = { 0x01, 0x20, 0x30, 0x01, 0x00 } |
const uint8 | SampleRates [] |
const uint8 | ApplicationPriorities [] |
const uint8 const | FSRange_2g [] = { 0x06, 0x20, 0x00, 0x01, 0x40 } |
const uint8 const | FSRange_4g [] = { 0x06, 0x20, 0x00, 0x01, 0x80 } |
const uint8 const | FSRange_8g [] = { 0x06, 0x20, 0x00, 0x01, 0x00 } |
const uint8 const | WakeApplication [] = { 0x12, 0x20, 0x06, 0x01, 0x00 } |
const uint8 const | LegacyMode [] = { 0x18, 0x20, 0x00, 0x01, 0x10 } |
const uint8 const | NormalMode [] = { 0x18, 0x20, 0x00, 0x01, 0x00 } |
const uint8 const | SleepApplication [] = { 0x12, 0x20, 0x06, 0x01, 0x01 } |
const uint8 const | MBoxQRDataXYZ [] = { 0x04, 0x20, 0x2C, 0x0C, 0x06, 0x13, 0x06, 0x12, 0x06, 0x15, 0x06, 0x14, 0x06, 0x17, 0x06, 0x16 } |
const uint8 const | ReadPedometerData [] = { 0x15, 0x30, 0x00, 0x0C } |
const uint8 const | ReadPedometerConfiguration [] = { 0x15, 0x10, 0x00, 0x11 } |
const uint8 const | WritePedometerConfiguration [] = { 0x15, 0x20, 0x00, 0x11 } |
const mma955x_Command_t const | MMA955x_InitializeSequence [] |
const mma955x_Command_t const | MMA955x_ConfigureSequence [] |
const mma955x_Command_t const | MMA955x_StartDataSequence [] |
const mma955x_Command_t const | MMA955x_StopDataSequence [] |
const mma955x_Command_t const | MMA955x_ShutdownDataSequence [] |
const mma955x_Command_t const | MMA955x_ReadConfigurationSequence [] |
const mma955x_Command_t const | MMA955x_WriteConfigurationSequence [] |
const mma955x_Command_t const | MMA955x_ReadPeadometerDataSequence [] |
mma955x_Sensor_Specific_Settings_t | MMA955x_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor. More... | |
const isf_dsa_Adapter_t | MMA955x_2_Adapter |
This creates the sensor adapter instance for the target sensor. More... | |
spi_master_slaveInfo_t | fsl_spi_sensor_type_MMA955x_2 |
const spi_master_CommSpecificInfo_t | MMA955x_2_DeviceInfo |
This allows access to the sensor communications specific configuration. More... | |
mma955x_Sensor_Specific_Settings_t | MMA955x_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor. More... | |
const isf_dsa_Adapter_t | MMA955x_2_Adapter |
This allows access to the sensor adapter instance for the target sensor. More... | |
const spi_master_CommSpecificInfo_t | MMA955x_2_DeviceInfo |
This allows access to the sensor communications specific configuration. More... | |
#define FSL_SENSOR_SPI_CMD_LENG 0x1 |
Definition at line 220 of file MMA955x_2.c.
Referenced by fsl_955x_spi_slave_read_postprocess(), fsl_955x_spi_slave_read_preprocess(), and fsl_955x_spi_slave_write_preprocess().
#define MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_2g (0.000061035156) |
Definition at line 62 of file MMA955x_2.h.
#define MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_4g (0.000122070312) |
Definition at line 63 of file MMA955x_2.h.
#define MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_8g (0.000244140624) |
Definition at line 64 of file MMA955x_2.h.
#define MMA955x_2_CONFIG_REGISTER_READ_OFFSET (0) |
Definition at line 58 of file MMA955x_2.h.
#define MMA955x_2_CONFIG_REGISTER_SIZE (sizeof(mma955x_readConfigResponseBuffer_t)) |
Definition at line 59 of file MMA955x_2.h.
#define MMA955x_2_DATA_TYPE mma955x_PedometerNativeData_t |
Definition at line 55 of file MMA955x_2.h.
#define MMA955x_2_SAMPLE_OFFSET (26) |
Definition at line 56 of file MMA955x_2.h.
#define MMA955x_2_SAMPLE_SIZE (6) |
Definition at line 57 of file MMA955x_2.h.
isf_status_t fsl_955x_spi_slave_init | ( | void | ) |
Definition at line 270 of file MMA955x_2.c.
References ChipSelect_OutConfig0, ISF_SUCCESS, J1_1, ResetSensor_OutConfig0, and XTAL_K64_MAIN.
isf_status_t fsl_955x_spi_slave_read_postprocess | ( | void * | pCmdOut, |
void * | pDataOut | ||
) |
Definition at line 340 of file MMA955x_2.c.
References FSL_SENSOR_SPI_CMD_LENG, ISF_MEM_CPY, ISF_SUCCESS, spi_mater_SlaveCmd::pReadBuffer, spi_mater_SlaveCmd::size, and XTAL_K64_MAIN.
isf_status_t fsl_955x_spi_slave_read_preprocess | ( | void * | pCmdOut, |
uint32 | offset, | ||
uint32 | size | ||
) |
Definition at line 319 of file MMA955x_2.c.
References FSL_SENSOR_SPI_CMD_LENG, ISF_SUCCESS, spi_mater_SlaveCmd::pReadBuffer, spi_mater_SlaveCmd::pWriteBuffer, spi_mater_SlaveCmd::size, and XTAL_K64_MAIN.
isf_status_t fsl_955x_spi_slave_write_postprocess | ( | void * | pCmdOut | ) |
Definition at line 311 of file MMA955x_2.c.
References ISF_SUCCESS, and XTAL_K64_MAIN.
isf_status_t fsl_955x_spi_slave_write_preprocess | ( | void * | pCmdOut, |
uint32 | offset, | ||
uint32 | size, | ||
void * | pWritebuffer | ||
) |
Definition at line 287 of file MMA955x_2.c.
References FSL_SENSOR_SPI_CMD_LENG, ISF_MEM_CPY, ISF_SUCCESS, spi_mater_SlaveCmd::pReadBuffer, spi_mater_SlaveCmd::pWriteBuffer, spi_mater_SlaveCmd::size, and XTAL_K64_MAIN.
void mma955xSetSamplingRate | ( | uint32 | samplePeriod | ) |
Definition at line 259 of file MMA955x_2.c.
References ApplicationPriorities, SampleRates, SelectedAFEPriority, SelectedMBoxPriority, and SelectedSampleRate.
Referenced by fsl_mma955x_Configure().
const uint8 ApplicationPriorities[] |
Definition at line 63 of file MMA955x_2.c.
Referenced by mma955xSetSamplingRate().
spi_master_slaveInfo_t fsl_spi_sensor_type_MMA955x_2 |
Definition at line 221 of file MMA955x_2.c.
const uint8 const FSRange_2g[] = { 0x06, 0x20, 0x00, 0x01, 0x40 } |
Definition at line 72 of file MMA955x_2.c.
const uint8 const FSRange_4g[] = { 0x06, 0x20, 0x00, 0x01, 0x80 } |
Definition at line 73 of file MMA955x_2.c.
const uint8 const FSRange_8g[] = { 0x06, 0x20, 0x00, 0x01, 0x00 } |
Definition at line 74 of file MMA955x_2.c.
const uint8 const LegacyMode[] = { 0x18, 0x20, 0x00, 0x01, 0x10 } |
Definition at line 77 of file MMA955x_2.c.
const uint8 const MBoxQRDataXYZ[] = { 0x04, 0x20, 0x2C, 0x0C, 0x06, 0x13, 0x06, 0x12, 0x06, 0x15, 0x06, 0x14, 0x06, 0x17, 0x06, 0x16 } |
Definition at line 80 of file MMA955x_2.c.
const isf_dsa_Adapter_t MMA955x_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 204 of file MMA955x_2.c.
const isf_dsa_Adapter_t MMA955x_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 204 of file MMA955x_2.c.
uint8 MMA955x_2_ConfigRegisterBuffer[MMA955x_2_CONFIG_REGISTER_SIZE] |
Definition at line 48 of file MMA955x_2.c.
const spi_master_CommSpecificInfo_t MMA955x_2_DeviceInfo |
This allows access to the sensor communications specific configuration.
Definition at line 229 of file MMA955x_2.c.
const spi_master_CommSpecificInfo_t MMA955x_2_DeviceInfo |
This allows access to the sensor communications specific configuration.
Definition at line 229 of file MMA955x_2.c.
mma955x_Sensor_Specific_Settings_t MMA955x_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor.
Definition at line 178 of file MMA955x_2.c.
mma955x_Sensor_Specific_Settings_t MMA955x_2_Sensor_Specific_Config |
This allows access to the sensor specific configuration for the target sensor.
Definition at line 178 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_ConfigureSequence[] |
Definition at line 95 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_InitializeSequence[] |
Definition at line 86 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_ReadConfigurationSequence[] |
Definition at line 151 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_ReadPeadometerDataSequence[] |
Definition at line 169 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_ShutdownDataSequence[] |
Definition at line 142 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_StartDataSequence[] |
Definition at line 124 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_StopDataSequence[] |
Definition at line 133 of file MMA955x_2.c.
const mma955x_Command_t const MMA955x_WriteConfigurationSequence[] |
Definition at line 160 of file MMA955x_2.c.
const uint8 const NormalMode[] = { 0x18, 0x20, 0x00, 0x01, 0x00 } |
Definition at line 78 of file MMA955x_2.c.
const uint8 const ReadPedometerConfiguration[] = { 0x15, 0x10, 0x00, 0x11 } |
Definition at line 83 of file MMA955x_2.c.
const uint8 const ReadPedometerData[] = { 0x15, 0x30, 0x00, 0x0C } |
Definition at line 82 of file MMA955x_2.c.
const uint8 SampleRates[] |
Definition at line 55 of file MMA955x_2.c.
Referenced by mma955xSetSamplingRate().
uint8 SelectedAFEPriority[] = { 0x01, 0x20, 0x32, 0x01, 0x00 } |
Definition at line 52 of file MMA955x_2.c.
Referenced by mma955xSetSamplingRate().
uint8 SelectedMBoxPriority[] = { 0x01, 0x20, 0x30, 0x01, 0x00 } |
Definition at line 53 of file MMA955x_2.c.
Referenced by mma955xSetSamplingRate().
uint8 SelectedSampleRate[] = { 0x06, 0x20, 0x0C, 0x01, 0x00 } |
Definition at line 51 of file MMA955x_2.c.
Referenced by mma955xSetSamplingRate().
const uint8 const SleepApplication[] = { 0x12, 0x20, 0x06, 0x01, 0x01 } |
Definition at line 79 of file MMA955x_2.c.
const uint8 const WakeApplication[] = { 0x12, 0x20, 0x06, 0x01, 0x00 } |
Definition at line 76 of file MMA955x_2.c.
const uint8 const WritePedometerConfiguration[] = { 0x15, 0x20, 0x00, 0x11 } |
Definition at line 84 of file MMA955x_2.c.