Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed PowerControl
Fork of Projet_S5 by
mouvement.cpp
- Committer:
- joGenie
- Date:
- 2014-04-08
- Revision:
- 11:9c0786fc06b4
- Parent:
- 10:61b4d6c67dd7
- Child:
- 12:16390cea4420
File content as of revision 11:9c0786fc06b4:
#include "mouvement.h" Mouvement::Mouvement(int code, int code_envoie, string definition) : _code(code), _code_envoie(code_envoie), _definition(definition) { } void Mouvement::sendData(Trame *trame) { char code[4]; code[0] = (_code_envoie >> 24) & 0xFF; code[1] = (_code_envoie >> 16) & 0xFF; code[2] = (_code_envoie >> 8) & 0xFF; code[3] = _code_envoie & 0xFF; trame->sendTransmitRequest(0, code, sizeof(int)); }