2016-02-27 10:50:51 +01:00
|
|
|
#ifndef __CW_H
|
|
|
|
#define __CW_H
|
|
|
|
|
|
|
|
#include "mbag.h"
|
|
|
|
#include "conn.h"
|
|
|
|
#include "action.h"
|
|
|
|
|
2016-03-04 20:23:32 +01:00
|
|
|
#include "lw.h"
|
2016-02-27 14:25:32 +01:00
|
|
|
|
2016-03-04 19:37:02 +01:00
|
|
|
/**
|
|
|
|
* @defgroup CW CW
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2016-02-27 14:25:32 +01:00
|
|
|
extern int cw_read_wtp_descriptor(mbag_t mbag, struct conn *conn,
|
|
|
|
struct cw_action_in *a, uint8_t * data, int len);
|
|
|
|
|
2016-02-27 10:50:51 +01:00
|
|
|
extern int cw_read_wtp_descriptor_7(mbag_t mbag, struct conn *conn,
|
|
|
|
struct cw_action_in *a, uint8_t * data, int len);
|
|
|
|
|
|
|
|
extern int cw_read_wtp_descriptor_versions(mbag_t mbag, uint8_t * data,
|
|
|
|
int len);
|
|
|
|
|
2016-03-04 19:37:02 +01:00
|
|
|
/* Use some macros from LWAPP */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Put a byte to an output buffer.
|
|
|
|
* see #lw_put_byte
|
|
|
|
*/
|
|
|
|
#define cw_put_byte lw_put_byte
|
|
|
|
/**
|
|
|
|
* Put a word to an output buffee.
|
|
|
|
* see #lw_put_word
|
|
|
|
*/
|
|
|
|
#define cw_put_word lw_put_word
|
|
|
|
#define cw_put_dword lw_put_dword
|
|
|
|
#define cw_put_data lw_put_data
|
|
|
|
#define cw_put_bstr lw_put_bstr
|
|
|
|
#define cw_put_bstr16 lw_put_bstr16
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
*@}
|
|
|
|
*/
|
2016-02-27 10:50:51 +01:00
|
|
|
|
|
|
|
#endif
|