blob: ab3d15610b46eaf93888070b4f29f29564f5ee25 [file] [log] [blame]
Sylvain Munaut8a5a9d42022-01-03 18:44:33 +01001/*
2 * usb_desc_ids.h
3 *
4 * Copyright (C) 2022 Sylvain Munaut <tnt@246tNt.com>
5 * SPDX-License-Identifier: LGPL-3.0-or-later
6 */
7
8#pragma once
9
Sylvain Munautdb0b8102022-09-01 18:43:41 +020010#ifndef NUM_E1_PORTS
11# define NUM_E1_PORTS 2
12#endif
13
Sylvain Munaut8a5a9d42022-01-03 18:44:33 +010014#define USB_INTF_E1(p) (0 + (p))
Sylvain Munautdb0b8102022-09-01 18:43:41 +020015#define USB_INTF_GPS_CDC_CTL (NUM_E1_PORTS + 0)
16#define USB_INTF_GPS_CDC_DATA (NUM_E1_PORTS + 1)
17#define USB_INTF_GPSDO (NUM_E1_PORTS + 2)
18#define USB_INTF_DFU (NUM_E1_PORTS + 3)
19#define USB_INTF_NUM (NUM_E1_PORTS + 4)
Sylvain Munaut8a5a9d42022-01-03 18:44:33 +010020
21#define USB_EP_E1_IN(p) (0x82 + (3 * (p)))
22#define USB_EP_E1_OUT(p) (0x01 + (3 * (p)))
23#define USB_EP_E1_FB(p) (0x81 + (3 * (p)))
24#define USB_EP_E1_INT(p) (0x83 + (3 * (p)))
Sylvain Munaut70c10f02022-01-12 11:58:34 +010025
26#define USB_EP_GPS_CDC_CTL 0x88
27#define USB_EP_GPS_CDC_OUT 0x09
28#define USB_EP_GPS_CDC_IN 0x89