Permet de créer, envoyer, filtrer et décrypter la trame meteo.

Dependents:   Simulation_carte_maitresse

Committer:
Station_Meteo_Laos
Date:
Fri Jun 14 09:47:35 2019 +0000
Revision:
4:caf7ef3d4d6e
Parent:
3:7715f6cccb3a
Child:
5:a90b50a19ae4
Fonctions : send, filtreID, getTemperature, getHumidte, getIrradiance, getVitesseVent et getDirectonVent.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Station_Meteo_Laos 0:f442198ae6b0 1 #ifndef METEO_CAN_H
Station_Meteo_Laos 0:f442198ae6b0 2 #define METEO_CAN_H
Station_Meteo_Laos 0:f442198ae6b0 3
Station_Meteo_Laos 0:f442198ae6b0 4 #include "mbed.h"
Station_Meteo_Laos 0:f442198ae6b0 5
Station_Meteo_Laos 0:f442198ae6b0 6 class meteoCAN
Station_Meteo_Laos 0:f442198ae6b0 7 {
Station_Meteo_Laos 0:f442198ae6b0 8 public:
Station_Meteo_Laos 0:f442198ae6b0 9 meteoCAN(PinName rd, PinName td); //CAN (PinName rd, PinName td)
Station_Meteo_Laos 0:f442198ae6b0 10 bool send(uint16_t canID, float temperature, float humidite, float irradiance, float vitesse_vent, char direction_vent);
Station_Meteo_Laos 4:caf7ef3d4d6e 11 bool filtreID(CANMessage &msg, uint16_t IDtoFilter);
Station_Meteo_Laos 2:559043c0120e 12 float getTemperature(CANMessage &msg);
Station_Meteo_Laos 2:559043c0120e 13 float getHumidite(CANMessage &msg);
Station_Meteo_Laos 2:559043c0120e 14 uint16_t getIrradiance(CANMessage &msg);
Station_Meteo_Laos 3:7715f6cccb3a 15 float getVitesseVent(CANMessage &msg);
Station_Meteo_Laos 3:7715f6cccb3a 16 uint8_t getDirectionVent(CANMessage &msg);
Station_Meteo_Laos 0:f442198ae6b0 17
Station_Meteo_Laos 0:f442198ae6b0 18 private:
Station_Meteo_Laos 0:f442198ae6b0 19 CAN can1;
Station_Meteo_Laos 2:559043c0120e 20 //CANMessage msg;
Station_Meteo_Laos 0:f442198ae6b0 21 };
Station_Meteo_Laos 0:f442198ae6b0 22
Station_Meteo_Laos 0:f442198ae6b0 23 #endif