embedded/projects/step-example/simulated_platform.c
SensorDescriptor_t* Platform_GetSensorDescriptorByName(const char* sensorType) {
  if (strcmp(sensorType, "sim-xl")          == 0){
    return &SIMULATED_ACCEL_DESCRIPTOR;
  } 
  else if (strcmp(sensorType, "sim-mag")    == 0) {
    return &SIMULATED_MAG_DESCRIPTOR;

  } 
  else if (strcmp(sensorType, "sim-gyro")   == 0) {
    return &SIMULATED_GYRO_DESCRIPTOR;
    
  } else {
    return NULL;
  }    
}
// returns the sensor descriptors that go with the simulated data
returns the sensor descriptors that go with the simulated data
returns the sensor descriptors that go with the simulated data
SensorDescriptor_t* Platform_GetSensorDescriptorByName(const char* sensorType) {
  if (strcmp(sensorType, "sim-xl")          == 0){
    return &SIMULATED_ACCEL_DESCRIPTOR;
  } 
  else if (strcmp(sensorType, "sim-mag")    == 0) {
    return &SIMULATED_MAG_DESCRIPTOR;
  } 
  else if (strcmp(sensorType, "sim-gyro")   == 0) {
    return &SIMULATED_GYRO_DESCRIPTOR;
  } else {
    return NULL;
  }    
}
SensorDescriptor_t * Platform_GetSensorDescriptorByName ( const char * sensorType ) { if ( strcmp ( sensorType , " " ) == 0 ) { return & SIMULATED_ACCEL_DESCRIPTOR ; } else if ( strcmp ( sensorType , " " ) == 0 ) { return & SIMULATED_MAG_DESCRIPTOR ; } else if ( strcmp ( sensorType , " " ) == 0 ) { return & SIMULATED_GYRO_DESCRIPTOR ; } else { return NULL ; } }
returns the sensor descriptors that go with the simulated data
returns the sensor descriptors that go with the simulated data