InPlay API
ipmac_slv_cb_t Struct Reference

Slave callback parameter. More...

#include <hal_ipmac.h>

Data Fields

void(* prev_irq_cb )(void *arg, uint32_t status)
 
void * prev_irq_arg
 IPMAC interrupt callback arguments.
 
void(* post_irq_cb )(void *arg, uint32_t status)
 
void * post_irq_arg
 IPMAC interrupt callback arguments.
 
void(* rx_cb )(void *arg, int type, int llid, uint8_t *buffer, uint16_t buffer_len)
 
void * rx_arg
 RX callback arguments.
 
void(* tx_cb )(void *arg, int order)
 
void * tx_arg
 TX callback arguments.
 
void(* status_cb )(uint32_t status)
 Status callback. status: enum ipmac_status.
 

Detailed Description

Slave callback parameter.

Field Documentation

◆ post_irq_cb

void(* post_irq_cb) (void *arg, uint32_t status)

IPMAC interrupt callback. Call it after driver callback. status: irq status, arg:post_irq_arg

◆ prev_irq_cb

void(* prev_irq_cb) (void *arg, uint32_t status)

IPMAC interrupt callback. Call it before driver callback. status: irq status, arg:prev_irq_arg

◆ rx_cb

void(* rx_cb) (void *arg, int type, int llid, uint8_t *buffer, uint16_t buffer_len)

RX callback. arg:rx_arg, type: enum ipmac_packet_type, llid: enum ipmac_llid, buffer:data buffer, buffer_len:buffer length

◆ tx_cb

void(* tx_cb) (void *arg, int order)

TX callback. arg:tx_arg, order:enum ipmac_buffer_order