21 #include "cb_wlan_target_data.h" 43 virtual void get_ifname(
char *name, uint8_t size)
const;
87 virtual bool link_out(emac_mem_buf_t *buf);
133 friend cb_boolean handleWlanTargetCopyFromDataFrame(uint8_t* buffer, cbWLANTARGET_dataFrame* frame, uint32_t size, uint32_t offsetInFrame);
134 friend cb_boolean handleWlanTargetCopyToDataFrame(cbWLANTARGET_dataFrame* frame, uint8_t* buffer, uint32_t size, uint32_t offsetInFrame);
135 friend cbWLANTARGET_dataFrame* handleWlanTargetAllocDataFrame(uint32_t size);
136 friend void handleWlanTargetFreeDataFrame(cbWLANTARGET_dataFrame* frame);
137 friend cb_uint32 handleWlanTargetGetDataFrameSize(cbWLANTARGET_dataFrame* frame);
139 friend void handleWlanStatusIndication(
void *dummy, cbWLAN_StatusIndicationInfo status,
void *data);
140 friend void handleWlanPacketIndication(
void *dummy, cbWLAN_PacketIndicationInfo *packetInfo);
141 friend void send_wlan_packet(
void *buf);
virtual uint8_t get_hwaddr_size() const
Returns size of the underlying interface HW address size.
virtual uint32_t get_align_preference() const
Gets memory buffer alignment preference.
virtual bool get_hwaddr(uint8_t *addr) const
Return interface-supplied HW address.
virtual void set_all_multicast(bool all)
Request reception of all multicast packets.
virtual void set_memory_manager(EMACMemoryManager &mem_mngr)
Sets memory manager that is used to handle memory buffers.
virtual void get_ifname(char *name, uint8_t size) const
Return interface name.
virtual bool link_out(emac_mem_buf_t *buf)
Sends the packet over the link.
virtual uint32_t get_mtu_size() const
Return maximum transmission unit.
mbed::Callback< void(emac_mem_buf_t *buf)> emac_link_input_cb_t
Callback to be register with EMAC interface and to be called for received packets.
virtual void set_link_state_cb(emac_link_state_change_cb_t state_cb)
Sets a callback that needs to be called on link status changes for given interface.
virtual void power_down()
Deinitializes the HW.
virtual void remove_multicast_group(const uint8_t *address)
Remove device from a multicast group.
virtual void set_hwaddr(const uint8_t *addr)
Set HW address for interface.
This interface should be used to abstract low level access to networking hardware All operations rece...
Callback class based on template specialization.
virtual void set_link_input_cb(emac_link_input_cb_t input_cb)
Sets a callback that needs to be called for packets received for that interface.
virtual bool power_up()
Initializes the HW.
virtual void add_multicast_group(const uint8_t *address)
Add device to a multicast group.