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: CRAC-Strat_2019 SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Dependents: Codeprincipal_2019 CRAC-Strat_2019
Conv_data_CAN/conv_data.cpp
- Committer:
- Sitkah
- Date:
- 2018-04-20
- Revision:
- 30:a1e37af4bbde
- Child:
- 31:833fc481b002
File content as of revision 30:a1e37af4bbde:
#include "global.h"
short char_to_short_transformation(char input1, char input2)
{
short output = 0;
output = input2<<8;
output += input1;
return output;
}
void short_to_char_transformation(char* output1, char* output2, short input)
{
*output1 = input & 0x00FF;
*output2 = (input & 0xFF00)>>8;
}