Wirepas SDK
dsap.h File Reference

Go to the source code of this file.

Functions

bool Dsap_handleFrame (waps_item_t *item)
 Process received request. More...
 
void Dsap_packetSent (pduid_t id, uint8_t src_ep, uint8_t dst_ep, uint32_t queue_time, w_addr_t dst, bool success, waps_item_t *output_ptr)
 Create a packet sent indication for sending to WAPS protocol. More...
 
void Dsap_packetReceived (const app_lib_data_received_t *data, w_addr_t dst_addr, waps_item_t *output_ptr)
 Create a packet received indication for sending to WAPS protocol. More...
 

Function Documentation

◆ Dsap_handleFrame()

bool Dsap_handleFrame ( waps_item_t item)

Process received request.

Parameters
itemStructure containing the received request frame
Returns
True, if a response was generated

◆ Dsap_packetReceived()

void Dsap_packetReceived ( const app_lib_data_received_t data,
w_addr_t  dst_addr,
waps_item_t output_ptr 
)

Create a packet received indication for sending to WAPS protocol.

Parameters
dataInformation on incoming data
dst_addrDestination address of packet, either unicast address or broadcast
output_ptrMemory area to construct the reply to

◆ Dsap_packetSent()

void Dsap_packetSent ( pduid_t  id,
uint8_t  src_ep,
uint8_t  dst_ep,
uint32_t  queue_time,
w_addr_t  dst,
bool  success,
waps_item_t output_ptr 
)

Create a packet sent indication for sending to WAPS protocol.

Parameters
idTracking id for PDU
src_epSource end point
dst_epDestination end point
queue_timePacket queuing time
dstPacket destination address
successTrue, if the packet was successfully sent
output_ptrMemory area to construct the reply to