v2019

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:
Artiom
Date:
2019-05-25
Revision:
65:1789068cf5ab
Parent:
31:833fc481b002

File content as of revision 65:1789068cf5ab:

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