WISP ERT (Client)  1.0.0
The WISP Extended Runtime (WISP side)
defs.h File Reference
#include <wio.h>

Go to the source code of this file.

Macros

#define _WTP_PKT_MAX   0x08
 WTP Packet max (Marco) More...
 
#define _WTP_EVENT_MAX   0x03
 WTP event max (Marco) More...
 

Typedefs

typedef wio_status_t wtp_status_t
 WTP status type. More...
 
typedef uint8_t wtp_pkt_t
 WTP packet type. More...
 
typedef uint8_t wtp_link_state_t
 WTP link state type. More...
 
typedef uint8_t wtp_event_t
 WTP event type. More...
 
typedef uint8_t wtp_param_t
 WTP parameter code type. More...
 
typedef wtp_status_t(* wtp_pkt_handler_t) (struct wtp *, wio_buf_t *)
 WTP packet handler type. More...
 

Variables

static const wtp_status_t WTP_ERR_UNSUPPORT_OP = 0x10
 Unsupported operation. More...
 
static const wtp_pkt_t WTP_PKT_END = 0x00
 No more packets. More...
 
static const wtp_pkt_t WTP_PKT_OPEN = 0x01
 Open WTP connection. More...
 
static const wtp_pkt_t WTP_PKT_CLOSE = 0x02
 Close WTP connection. More...
 
static const wtp_pkt_t WTP_PKT_ACK = 0x03
 Acknowledgement. More...
 
static const wtp_pkt_t WTP_PKT_BEGIN_MSG = 0x04
 Begin message. More...
 
static const wtp_pkt_t WTP_PKT_CONT_MSG = 0x05
 Continue message. More...
 
static const wtp_pkt_t WTP_PKT_REQ_UPLINK = 0x06
 Request uplink transmission. More...
 
static const wtp_pkt_t WTP_PKT_SET_PARAM = 0x07
 Set WTP parameter. More...
 
static const wtp_pkt_t WTP_PKT_MAX = _WTP_PKT_MAX
 WTP Packet max. More...
 
static const wtp_link_state_t WTP_STATE_CLOSED = 0x00
 Connection closed. More...
 
static const wtp_link_state_t WTP_STATE_OPENING = 0x01
 Connection opening. More...
 
static const wtp_link_state_t WTP_STATE_OPENED = 0x02
 Connection opened. More...
 
static const wtp_link_state_t WTP_STATE_CLOSING = 0x03
 Connection closing. More...
 
static const wtp_event_t WTP_EVENT_OPEN = 0x00
 Connection opened event. More...
 
static const wtp_event_t WTP_EVENT_HALF_CLOSE = 0x01
 Downlink closed event. More...
 
static const wtp_event_t WTP_EVENT_CLOSE = 0x02
 Connection closed event. More...
 
static const wtp_event_t WTP_EVENT_MAX = _WTP_EVENT_MAX
 WTP event max. More...
 
static const wtp_param_t WTP_PARAM_WINDOW_SIZE = 0x00
 Sliding window size. More...
 
static const wtp_param_t WTP_PARAM_READ_SIZE = 0x01
 Read OpSpec size. More...
 

Macro Definition Documentation

◆ _WTP_EVENT_MAX

#define _WTP_EVENT_MAX   0x03

WTP event max (Marco)

◆ _WTP_PKT_MAX

#define _WTP_PKT_MAX   0x08

WTP Packet max (Marco)

Typedef Documentation

◆ wtp_event_t

typedef uint8_t wtp_event_t

WTP event type.

◆ wtp_link_state_t

typedef uint8_t wtp_link_state_t

WTP link state type.

◆ wtp_param_t

typedef uint8_t wtp_param_t

WTP parameter code type.

◆ wtp_pkt_handler_t

typedef wtp_status_t(* wtp_pkt_handler_t) (struct wtp *, wio_buf_t *)

WTP packet handler type.

◆ wtp_pkt_t

typedef uint8_t wtp_pkt_t

WTP packet type.

◆ wtp_status_t

WTP status type.

Variable Documentation

◆ WTP_ERR_UNSUPPORT_OP

const wtp_status_t WTP_ERR_UNSUPPORT_OP = 0x10
static

Unsupported operation.

◆ WTP_EVENT_CLOSE

const wtp_event_t WTP_EVENT_CLOSE = 0x02
static

Connection closed event.

◆ WTP_EVENT_HALF_CLOSE

const wtp_event_t WTP_EVENT_HALF_CLOSE = 0x01
static

Downlink closed event.

◆ WTP_EVENT_MAX

const wtp_event_t WTP_EVENT_MAX = _WTP_EVENT_MAX
static

WTP event max.

◆ WTP_EVENT_OPEN

const wtp_event_t WTP_EVENT_OPEN = 0x00
static

Connection opened event.

◆ WTP_PARAM_READ_SIZE

const wtp_param_t WTP_PARAM_READ_SIZE = 0x01
static

Read OpSpec size.

◆ WTP_PARAM_WINDOW_SIZE

const wtp_param_t WTP_PARAM_WINDOW_SIZE = 0x00
static

Sliding window size.

◆ WTP_PKT_ACK

const wtp_pkt_t WTP_PKT_ACK = 0x03
static

Acknowledgement.

◆ WTP_PKT_BEGIN_MSG

const wtp_pkt_t WTP_PKT_BEGIN_MSG = 0x04
static

Begin message.

◆ WTP_PKT_CLOSE

const wtp_pkt_t WTP_PKT_CLOSE = 0x02
static

Close WTP connection.

◆ WTP_PKT_CONT_MSG

const wtp_pkt_t WTP_PKT_CONT_MSG = 0x05
static

Continue message.

◆ WTP_PKT_END

const wtp_pkt_t WTP_PKT_END = 0x00
static

No more packets.

◆ WTP_PKT_MAX

const wtp_pkt_t WTP_PKT_MAX = _WTP_PKT_MAX
static

WTP Packet max.

◆ WTP_PKT_OPEN

const wtp_pkt_t WTP_PKT_OPEN = 0x01
static

Open WTP connection.

◆ WTP_PKT_REQ_UPLINK

const wtp_pkt_t WTP_PKT_REQ_UPLINK = 0x06
static

Request uplink transmission.

◆ WTP_PKT_SET_PARAM

const wtp_pkt_t WTP_PKT_SET_PARAM = 0x07
static

Set WTP parameter.

◆ WTP_STATE_CLOSED

const wtp_link_state_t WTP_STATE_CLOSED = 0x00
static

Connection closed.

◆ WTP_STATE_CLOSING

const wtp_link_state_t WTP_STATE_CLOSING = 0x03
static

Connection closing.

◆ WTP_STATE_OPENED

const wtp_link_state_t WTP_STATE_OPENED = 0x02
static

Connection opened.

◆ WTP_STATE_OPENING

const wtp_link_state_t WTP_STATE_OPENING = 0x01
static

Connection opening.