Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90389281
arke.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 05:31
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Nov 3, 05:31 (2 d)
Engine
blob
Format
Raw Data
Handle
22066600
Attached To
R7582 FORmicidae Tracker - Communication Protocol Implementations - libarke
arke.c
View Options
#include "arke-c.h"
#include "arke-private-conversion.h"
void ArkeZeusSetTargetHumidity(ArkeZeusSetPoint * sp,float value) {
sp->Humidity = float_to_humidity(value);
}
void ArkeZeusSetTargetTemperature(ArkeZeusSetPoint * sp,float value) {
sp->Temperature = float_to_hih6030_temperature(value);
}
void ArkeZeusSetTargetWind(ArkeZeusSetPoint * sp,uint8_t power) {
sp->Wind = power;
}
float ArkeZeusGetTargetHumidity(const ArkeZeusSetPoint * sp) {
return humidity_to_float(sp->Humidity);
}
float ArkeZeusGetTargetTemperature(const ArkeZeusSetPoint * sp) {
return hih6030_temperature_to_float(sp->Temperature);
}
uint8_t ArkeZeusGetTargetWind(const ArkeZeusSetPoint * sp) {
return sp->Wind;
}
float ArkeZeusGetHumidity(const ArkeZeusReport * r) {
return humidity_to_float(r->Humidity);
}
float ArkeZeusGetTemperature1(const ArkeZeusReport * r) {
return hih6030_temperature_to_float(r->Temperature1);
}
float ArkeZeusGetTemperature2(const ArkeZeusReport * r) {
return tmp1075_to_float(r->Temperature2);
}
float ArkeZeusGetTemperature3(const ArkeZeusReport * r) {
return tmp1075_to_float(r->Temperature3);
}
float ArkeZeusGetTemperature4(const ArkeZeusReport * r) {
return tmp1075_to_float(r->Temperature4);
}
Event Timeline
Log In to Comment