carte_strategie_2019

Dependencies:   mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac

Conv_data_CAN/conv_data.cpp

Committer:
kyxstark
Date:
2019-06-01
Revision:
91:42ae63e5daf5
Parent:
31:833fc481b002

File content as of revision 91:42ae63e5daf5:

#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;
}