1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-05-01 06:09:29 +00:00
Files
mist-devel.mist-firmware/usb/asix.h
Gyorgy Szombathelyi ceb1fc0271 Add a SAMV71 port
2024-03-11 08:53:34 +01:00

27 lines
661 B
C

#ifndef ASIX_H
#define ASIX_H
#include <stdbool.h>
#include <inttypes.h>
#include "asix_const.h"
typedef struct {
ep_t ep[3];
uint16_t phy_id;
uint32_t qLastIrqPollTime; // next irq poll time
uint8_t ep_int_idx; // index of interrupt ep
uint8_t int_poll_ms; // poll interval in ms
bool bPollEnable;
bool linkDetected;
uint8_t mac[ETH_ALEN];
uint32_t qLastBulkPollTime; // next bulk poll time
uint32_t qLastMACSendTime; // next MAC send time
} usb_asix_info_t;
// interface to usb core
extern const usb_device_class_config_t usb_asix_class;
void usb_asix_xmit(uint16_t len);
uint8_t *asix_get_mac(void);
#endif // ASIX_H