Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL

Dependencies:   mbed

inc/th_rtz.h

Committer:
mfwic
Date:
2019-03-14
Revision:
53:004a9674e922
Parent:
52:2b3b194144da

File content as of revision 53:004a9674e922:

//-------------------------------------------------------------------------------
// 
//  Treehouse Designs Inc.
//  Colorado Springs, Colorado
// 
//  Copyright (c) 2016 by Treehouse Designs Inc. 
//  Copyright (c) 2018 by Agility Power Systems Inc. 
// 
//  This code is the property of Treehouse Designs, Inc. (Treehouse) and
//  Agility Power Systems Inc. (Agility) and may not be redistributed
//  in any form without prior written permission from 
//  both copyright holders, Treehouse and Agility.
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
// 
//   
//-------------------------------------------------------------------------------
// 
//  REVISION HISTORY:
//  
//   $Author: $
//   $Rev: $
//   $Date: $
//   $URL: $
// 
//-------------------------------------------------------------------------------

#ifndef OCL_H_ // Include guards
#define OCL_H_

#include <string>

extern volatile bool pulseReady;

extern bool slave1;        //New for 1U5
extern bool slave2;        //New for 1U5

#define RX_TIMEOUT 1000

void Slave_Init(void);

void Slave_Rx_riseIRQ(void);

void Slave_Rx_fallIRQ(void);

unsigned short Slave_RXstr(void);

void sendPreamble(void);

void sendMstr_one(unsigned short);

void sendMstr_zero(unsigned short);

void sendByte(unsigned short slaveNum, char data_byte);

#endif // OCL_H_