Alexandre Salconi-Denis / Mbed 2 deprecated ProjetOctopode

Dependencies:   debug mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CommunicationNeuronale.cpp Source File

CommunicationNeuronale.cpp

00001 /*
00002  * CommunicationNeuronale.cpp
00003  *
00004  *  Created on: Mar 10, 2015
00005  *      Author: salco
00006  */
00007 #include "CommunicationNeuronale.h"
00008 ComModulesSPI::ComModulesSPI(PinName mosi, PinName miso, PinName sclk, PinName _unused) : SPI(mosi,miso,sclk,_unused)
00009 {
00010     // m_com = new SPI(mosi,miso,sclk,_unused);
00011     m_regPortUse=0;
00012     m_regPortLost=0;
00013     m_demuxPos=0;
00014 }
00015 ComModulesSPI::~ComModulesSPI()
00016 {
00017     //if(m_com)
00018     // delete(m_com);
00019 }
00020 int ComModulesSPI::write(int value)
00021 {
00022   int a;
00023   a= SPI::write(value);
00024 return a;
00025 }