mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
kx122: Added missing function implementation
Signed-off-by: Samuli Rissanen samuli.rissanen@hotmail.com Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
ad36f83857
commit
e4dd6457bb
@ -56,6 +56,12 @@ float KX122::getSamplePeriod()
|
||||
return kx122_get_sample_period(m_kx122);
|
||||
}
|
||||
|
||||
void KX122::getWhoAmI(uint8_t *data)
|
||||
{
|
||||
if(kx122_get_who_am_i(m_kx122,data)){
|
||||
throw std::runtime_error(std::string(__FUNCTION__) + "kx122_get_who_am_i failed");
|
||||
}
|
||||
}
|
||||
void KX122::getRawAccelerationData(float *x, float *y, float *z)
|
||||
{
|
||||
if(kx122_get_acceleration_data_raw(m_kx122,x,y,z)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user