MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / FXmacOsOutput

Function FXmacOsOutput

bsp/phytium/libraries/drivers/drv_xmac.c:1199–1216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197}
1198
1199static FError FXmacOsOutput(FXmacOs *instance_p, struct pbuf *p)
1200{
1201 FError status;
1202
1203 status = FXmacSgsend(instance_p, p);
1204 if (status != FT_SUCCESS)
1205 {
1206#if LINK_STATS
1207 lwip_stats.link.drop++;
1208#endif
1209 }
1210
1211#if LINK_STATS
1212 lwip_stats.link.xmit++;
1213#endif /* LINK_STATS */
1214
1215 return status;
1216}
1217
1218FError FXmacOsTx(FXmacOs *instance_p, void *tx_buf)
1219{

Callers 1

FXmacOsTxFunction · 0.85

Calls 1

FXmacSgsendFunction · 0.85

Tested by

no test coverage detected