Wirepas SDK
waps_protocol.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* waps_request_receive_f) (waps_item_t *item)
 

Functions

void Waps_force_send_indication ()
 
bool Waps_prot_init (waps_request_receive_f cb, uint32_t baudrate, bool flow_ctrl)
 Initialize WAPS protocol layer and low level layer. More...
 
bool Waps_prot_hasIndication (void)
 Check if protocol layer has indication stashed. More...
 
void Waps_prot_updateIrqPin (void)
 Update IRQ pin state depending on queued indications. More...
 

Data Structures

struct  waps_prot_t
 

Macros

#define Waps_prot_sendReply()   waps_prot.send_reply()
 
#define Waps_hw_write(a, b)   waps_prot.write_hw(a,b)
 
#define Waps_prot_frameRemoved()   waps_prot.frame_removed()
 
#define Waps_prot_processResponse(x)   waps_prot.process_response(item)
 
#define Waps_prot_updateIrq(x)   waps_prot.update_irq(x)
 
#define Waps_prot_flush_hw()   waps_prot.flush_hw();
 

Variables

waps_prot_t waps_prot
 
sl_list_head_t waps_ind_queue
 
sl_list_head_t waps_reply_queue
 

Typedef Documentation

◆ waps_request_receive_f

typedef void(* waps_request_receive_f) (waps_item_t *item)

Definition at line 17 of file waps_protocol.h.

Function Documentation

◆ Waps_force_send_indication()

void Waps_force_send_indication ( )

◆ Waps_prot_hasIndication()

bool Waps_prot_hasIndication ( void  )

Check if protocol layer has indication stashed.

◆ Waps_prot_init()

bool Waps_prot_init ( waps_request_receive_f  cb,
uint32_t  baudrate,
bool  flow_ctrl 
)

Initialize WAPS protocol layer and low level layer.

Returns
True if successful, false otherwise

◆ Waps_prot_updateIrqPin()

void Waps_prot_updateIrqPin ( void  )

Update IRQ pin state depending on queued indications.

Macro Definition Documentation

◆ Waps_hw_write

#define Waps_hw_write (   a,
 
)    waps_prot.write_hw(a,b)

Definition at line 35 of file waps_protocol.h.

◆ Waps_prot_flush_hw

#define Waps_prot_flush_hw ( )    waps_prot.flush_hw();

Definition at line 39 of file waps_protocol.h.

◆ Waps_prot_frameRemoved

#define Waps_prot_frameRemoved ( )    waps_prot.frame_removed()

Definition at line 36 of file waps_protocol.h.

◆ Waps_prot_processResponse

#define Waps_prot_processResponse (   x)    waps_prot.process_response(item)

Definition at line 37 of file waps_protocol.h.

◆ Waps_prot_sendReply

#define Waps_prot_sendReply ( )    waps_prot.send_reply()

Definition at line 34 of file waps_protocol.h.

◆ Waps_prot_updateIrq

#define Waps_prot_updateIrq (   x)    waps_prot.update_irq(x)

Definition at line 38 of file waps_protocol.h.

Variable Documentation

◆ waps_ind_queue

sl_list_head_t waps_ind_queue

WAPS Global queues

◆ waps_prot

waps_prot_t waps_prot

◆ waps_reply_queue

sl_list_head_t waps_reply_queue