Pebble App Framework
main
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
Loading...
Searching...
No Matches
wind.h
Go to the documentation of this file.
1
7
#pragma once
8
13
20
typedef
enum
21
{
22
WIND_UNIT_KMH
= 0,
23
WIND_UNIT_MPH
,
24
WIND_UNIT_KTS
,
25
WIND_UNIT_MS
,
26
WIND_UNIT_COUNT
27
}
WindUnit
;
28
38
int
wind_from_kmh
(
int
kmh,
WindUnit
unit);
39
46
const
char
*
wind_unit_label
(
WindUnit
unit);
47
wind_from_kmh
int wind_from_kmh(int kmh, WindUnit unit)
Convert a km/h wind speed into the chosen unit.
Definition
wind.c:9
WindUnit
WindUnit
Which unit a wind speed reads out in.
Definition
wind.h:21
wind_unit_label
const char * wind_unit_label(WindUnit unit)
The short label for a wind unit.
Definition
wind.c:20
WIND_UNIT_MPH
@ WIND_UNIT_MPH
miles per hour
Definition
wind.h:23
WIND_UNIT_KTS
@ WIND_UNIT_KTS
knots
Definition
wind.h:24
WIND_UNIT_COUNT
@ WIND_UNIT_COUNT
how many units there are, not a unit itself
Definition
wind.h:26
WIND_UNIT_KMH
@ WIND_UNIT_KMH
kilometres per hour
Definition
wind.h:22
WIND_UNIT_MS
@ WIND_UNIT_MS
metres per second
Definition
wind.h:25
src
c
core
units
wind.h
Generated by
1.18.0