InPlay API
ipmac_mst_cb_t Struct Reference

Master 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 slv_id, int llid, uint8_t *buffer, uint16_t buffer_len)
 
void * rx_arg
 RX callback arguments.
 
void(* tx_cb )(void *arg, int slv_id, int type, int order)
 
void * tx_arg
 TX callback arguments.
 
void(* status_cb )(uint32_t status, uint8_t slv_id)
 Status callback. status: enum ipmac_status, slv_id: slave id.
 

Detailed Description

Master 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 slv_id, int llid, uint8_t *buffer, uint16_t buffer_len)

RX callback. arg:rx_arg, slv_id: slave id, llid:enum ipmac_llid, buffer:data buffer, buffer_len:buffer length

◆ tx_cb

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

TX callback. arg:tx_arg, slv_id: slave id, type: enum ipmac_packet_type, order:enum ipmac_buffer_order