DUREX.h 1.64 KB
/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-14T13:18:01T ****/
/**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/

#ifndef DUREX__H
#define DUREX__H

#include "Em_Types.h"
#include "Em_Message.h"

#ifdef __cplusplus
extern "C" {
#endif

/* typedef String */
typedef char DUREX_String;
#define DUREX_String_length 229

/* enum BOOLEAN */
typedef uint8_t DUREX_BOOLEAN;
#define DUREX_TRUE 0
#define DUREX_FALSE 1

/* resource numBytes */
typedef uint8_t DUREX_numBytes_t;
extern void DUREX_numBytes_fetch(DUREX_numBytes_t* const output);
extern void DUREX_numBytes_store(DUREX_numBytes_t* const input);

/* resource data */
typedef DUREX_String DUREX_data_t[229];
extern void DUREX_data_fetch(DUREX_data_t* const output);
extern void DUREX_data_store(DUREX_data_t* const input);

/* resource numPackets */
typedef uint8_t DUREX_numPackets_t;
extern void DUREX_numPackets_fetch(DUREX_numPackets_t* const output);
extern void DUREX_numPackets_store(DUREX_numPackets_t* const input);

/* resource messageAvailable */
typedef DUREX_BOOLEAN DUREX_messageAvailable_t;
extern void DUREX_messageAvailable_fetch(DUREX_messageAvailable_t* const output);
extern void DUREX_messageAvailable_store(DUREX_messageAvailable_t* const input);
extern void DUREX_messageAvailable_indicate(void);

void DUREX_reset(void);
void DUREX_run(void);

void DUREX_accept(bool enable);
void DUREX_disconnect(void);
void DUREX_pairingOn(uint8_t secs, void(*handler)(void));
void DUREX_pairingOff(void(*handler)(void));

void DUREX_connectHandler(void);
void DUREX_disconnectHandler(void);

#ifdef __cplusplus
}
#endif

#endif /* DUREX__H */