first lib
Dependents: 17robo_fuzi 17robo_tokyo_kaede
limit.h@0:9665aacf40f0, 2017-09-24 (annotated)
- Committer:
- echo_piyo
- Date:
- Sun Sep 24 05:24:56 2017 +0000
- Revision:
- 0:9665aacf40f0
????2??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
echo_piyo | 0:9665aacf40f0 | 1 | /* |
echo_piyo | 0:9665aacf40f0 | 2 | dataのmax,minの範囲内の数値を返す関数 |
echo_piyo | 0:9665aacf40f0 | 3 | |
echo_piyo | 0:9665aacf40f0 | 4 | limiti([int]data, [int]max, [int]min); //int用 |
echo_piyo | 0:9665aacf40f0 | 5 | limitf([float]data, [float]max, [float]min); //float用 |
echo_piyo | 0:9665aacf40f0 | 6 | |
echo_piyo | 0:9665aacf40f0 | 7 | */ |
echo_piyo | 0:9665aacf40f0 | 8 | |
echo_piyo | 0:9665aacf40f0 | 9 | #ifndef MBED_LIMIT_H |
echo_piyo | 0:9665aacf40f0 | 10 | #define MBED_LIMIT_H |
echo_piyo | 0:9665aacf40f0 | 11 | |
echo_piyo | 0:9665aacf40f0 | 12 | #include "mbed.h" |
echo_piyo | 0:9665aacf40f0 | 13 | |
echo_piyo | 0:9665aacf40f0 | 14 | int limiti(int data, int max, int min); |
echo_piyo | 0:9665aacf40f0 | 15 | float limitf(float data, float max, float min); |
echo_piyo | 0:9665aacf40f0 | 16 | |
echo_piyo | 0:9665aacf40f0 | 17 | #endif |