Il y avait des problèmes dans la libraire...
Fork of USBDEVICE by
USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_function_api.h@5:3329e56e51d7, 2017-09-03 (annotated)
- Committer:
- qroche
- Date:
- Sun Sep 03 23:19:21 2017 +0000
- Branch:
- master
- Revision:
- 5:3329e56e51d7
- Parent:
- 1:2a3ae13b45ef
fin;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 1 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 2 | * DISCLAIMER |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 4 | * intended for use with Renesas products. No other uses are authorized. This |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 6 | * all applicable laws, including copyright laws. |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 16 | * Renesas reserves the right, without notice, to make changes to this software |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 17 | * and to discontinue the availability of this software. By using this software, |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 18 | * you agree to the additional terms and conditions found by accessing the |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 19 | * following link: |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 20 | * http://www.renesas.com/disclaimer |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 21 | * Copyright (C) 2012 - 2014 Renesas Electronics Corporation. All rights reserved. |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 22 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 23 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 24 | * File Name : devdrv_usb_function_api.h |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 25 | * $Rev: 1116 $ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 26 | * $Date:: 2014-07-09 16:29:19 +0900#$ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 27 | * Description : RZ/A1H R7S72100 USB Sample Program |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 28 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 29 | #ifndef USB_FUNCTION_API_H |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 30 | #define USB_FUNCTION_API_H |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 31 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 32 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 33 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 34 | Includes <System Includes> , "Project Includes" |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 35 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 36 | #include <VKRZA1H.h> |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 37 | #include "r_typedefs.h" |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 38 | #include "usb0_function_api.h" |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 39 | #include "usb1_function_api.h" |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 40 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 41 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 42 | #ifdef __cplusplus |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 43 | extern "C" { |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 44 | #endif |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 45 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 46 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 47 | Typedef definitions |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 48 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 49 | typedef struct |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 50 | { |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 51 | uint32_t fifo; |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 52 | uint32_t buffer; |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 53 | uint32_t bytes; |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 54 | uint32_t dir; |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 55 | uint32_t size; |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 56 | } USB_FUNCTION_DMA_t; |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 57 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 58 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 59 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 60 | Macro definitions |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 61 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 62 | #define USBFCLOCK_X1_48MHZ (0x0000u) /* USB_X1_48MHz */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 63 | #define USBFCLOCK_EXTAL_12MHZ (0x0004u) /* EXTAL_12MHz */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 64 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 65 | #define DEVDRV_USBF_ON (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 66 | #define DEVDRV_USBF_OFF (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 67 | #define DEVDRV_USBF_YES (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 68 | #define DEVDRV_USBF_NO (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 69 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 70 | #define DEVDRV_USBF_STALL (-2) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 71 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 72 | #define DEVDRV_USBF_WRITEEND (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 73 | #define DEVDRV_USBF_WRITESHRT (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 74 | #define DEVDRV_USBF_WRITING (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 75 | #define DEVDRV_USBF_WRITEDMA (3) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 76 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 77 | #define DEVDRV_USBF_FIFOERROR (0xffff) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 78 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 79 | #define DEVDRV_USBF_PIPE_IDLE (0x00) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 80 | #define DEVDRV_USBF_PIPE_WAIT (0x01) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 81 | #define DEVDRV_USBF_PIPE_DONE (0x02) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 82 | #define DEVDRV_USBF_PIPE_NORES (0x03) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 83 | #define DEVDRV_USBF_PIPE_STALL (0x04) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 84 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 85 | #define DEVDRV_USBF_PID_NAK (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 86 | #define DEVDRV_USBF_PID_BUF (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 87 | #define DEVDRV_USBF_PID_STALL (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 88 | #define DEVDRV_USBF_PID_STALL2 (0x0003u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 89 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 90 | #define USB_FUNCTION_NON_SPEED (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 91 | #define USB_FUNCTION_LOW_SPEED (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 92 | #define USB_FUNCTION_FULL_SPEED (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 93 | #define USB_FUNCTION_HIGH_SPEED (3) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 94 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 95 | #define USB_FUNCTION_READEND (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 96 | #define USB_FUNCTION_READSHRT (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 97 | #define USB_FUNCTION_READING (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 98 | #define USB_FUNCTION_READOVER (3) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 99 | #define USB_FUNCTION_READZERO (4) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 100 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 101 | #define USB_FUNCTION_MAX_PIPE_NO (15u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 102 | #define USB_FUNCTION_PIPE0 (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 103 | #define USB_FUNCTION_PIPE1 (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 104 | #define USB_FUNCTION_PIPE2 (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 105 | #define USB_FUNCTION_PIPE3 (3) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 106 | #define USB_FUNCTION_PIPE4 (4) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 107 | #define USB_FUNCTION_PIPE5 (5) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 108 | #define USB_FUNCTION_PIPE6 (6) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 109 | #define USB_FUNCTION_PIPE7 (7) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 110 | #define USB_FUNCTION_PIPE8 (8) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 111 | #define USB_FUNCTION_PIPE9 (9) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 112 | #define USB_FUNCTION_PIPEA (10) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 113 | #define USB_FUNCTION_PIPEB (11) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 114 | #define USB_FUNCTION_PIPEC (12) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 115 | #define USB_FUNCTION_PIPED (13) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 116 | #define USB_FUNCTION_PIPEE (14) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 117 | #define USB_FUNCTION_PIPEF (15) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 118 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 119 | #define USB_FUNCTION_ISO (0xc000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 120 | #define USB_FUNCTION_INTERRUPT (0x8000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 121 | #define USB_FUNCTION_BULK (0x4000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 122 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 123 | #define USB_FUNCTION_NONE (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 124 | #define USB_FUNCTON_BFREFIELD (0x0400u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 125 | #define USB_FUNCTION_BFREON (0x0400u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 126 | #define USB_FUNCTION_BFREOFF (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 127 | #define USB_FUNCTION_DBLBFIELD (0x0200u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 128 | #define USB_FUNCTION_DBLBON (0x0200u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 129 | #define USB_FUNCTION_DBLBOFF (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 130 | #define USB_FUNCTION_CNTMDFIELD (0x0100u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 131 | #define USB_FUNCTION_CNTMDON (0x0100u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 132 | #define USB_FUNCTION_CNTMDOFF (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 133 | #define USB_FUNCTION_SHTNAKON (0x0080u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 134 | #define USB_FUNCTION_SHTNAKOFF (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 135 | #define USB_FUNCTION_DIRFIELD (0x0010u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 136 | #define USB_FUNCTION_DIR_P_OUT (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 137 | #define USB_FUNCTION_DIR_P_IN (0x0010u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 138 | #define USB_FUNCTION_EPNUMFIELD (0x000fu) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 139 | #define USB_FUNCTION_MAX_EP_NO (15u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 140 | #define USB_FUNCTION_EP0 (0u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 141 | #define USB_FUNCTION_EP1 (1u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 142 | #define USB_FUNCTION_EP2 (2u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 143 | #define USB_FUNCTION_EP3 (3u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 144 | #define USB_FUNCTION_EP4 (4u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 145 | #define USB_FUNCTION_EP5 (5u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 146 | #define USB_FUNCTION_EP6 (6u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 147 | #define USB_FUNCTION_EP7 (7u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 148 | #define USB_FUNCTION_EP8 (8u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 149 | #define USB_FUNCTION_EP9 (9u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 150 | #define USB_FUNCTION_EP10 (10u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 151 | #define USB_FUNCTION_EP11 (11u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 152 | #define USB_FUNCTION_EP12 (12u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 153 | #define USB_FUNCTION_EP13 (13u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 154 | #define USB_FUNCTION_EP14 (14u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 155 | #define USB_FUNCTION_EP15 (15u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 156 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 157 | #define USB_FUNCTION_EPTABLE_LENGTH (5u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 158 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 159 | #define USB_FUNCTION_CUSE (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 160 | #define USB_FUNCTION_D0USE (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 161 | #define USB_FUNCTION_D0DMA (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 162 | #define USB_FUNCTION_D1USE (3) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 163 | #define USB_FUNCTION_D1DMA (4) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 164 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 165 | #define USB_FUNCTION_CFIFO_USE (0x0000) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 166 | #define USB_FUNCTION_D0FIFO_USE (0x1000) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 167 | #define USB_FUNCTION_D1FIFO_USE (0x2000) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 168 | #define USB_FUNCTION_D0FIFO_DMA (0x5000) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 169 | #define USB_FUNCTION_D1FIFO_DMA (0x6000) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 170 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 171 | #define USB_FUNCTION_BUF2FIFO (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 172 | #define USB_FUNCTION_FIFO2BUF (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 173 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 174 | #define USB_FUNCTION_DVST_POWERED (0x0001) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 175 | #define USB_FUNCTION_DVST_DEFAULT (0x0002) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 176 | #define USB_FUNCTION_DVST_ADDRESS (0x0003) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 177 | #define USB_FUNCTION_DVST_CONFIGURED (0x0004) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 178 | #define USB_FUNCTION_DVST_SUSPEND (0x0005) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 179 | #define USB_FUNCTION_DVST_CONFIGURED_SUSPEND (0x0006) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 180 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 181 | #define USB_FUNCTION_FUNCTION_TEST_SELECT (0xff00u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 182 | #define USB_FUNCTION_FUNCTION_TEST_J (0x0100u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 183 | #define USB_FUNCTION_FUNCTION_TEST_K (0x0200u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 184 | #define USB_FUNCTION_FUNCTION_TEST_SE0_NAK (0x0300u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 185 | #define USB_FUNCTION_FUNCTION_TEST_PACKET (0x0400u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 186 | #define USB_FUNCTION_FUNCTION_TEST_FORCE_ENABLE (0x0500u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 187 | #define USB_FUNCTION_FUNCTION_TEST_STSelectors (0x0600u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 188 | #define USB_FUNCTION_FUNCTION_TEST_Reserved (0x4000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 189 | #define USB_FUNCTION_FUNCTION_TEST_VSTModes (0xc000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 190 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 191 | #define USB_FUNCTION_DT_TYPE (0xff00u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 192 | #define USB_FUNCTION_DT_INDEX (0xff) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 193 | #define USB_FUNCTION_DT_DEVICE (0x01) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 194 | #define USB_FUNCTION_DT_CONFIGURATION (0x02) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 195 | #define USB_FUNCTION_DT_STRING (0x03) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 196 | #define USB_FUNCTION_DT_INTERFACE (0x04) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 197 | #define USB_FUNCTION_DT_ENDPOINT (0x05) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 198 | #define USB_FUNCTION_DT_DEVICE_QUALIFIER (0x06) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 199 | #define USB_FUNCTION_DT_OTHER_SPEED_CONFIGURATION (0x07) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 200 | #define USB_FUNCTION_DT_INTERFACE_POWER (0x08) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 201 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 202 | #define USB_FUNCTION_CF_RESERVED (0x80) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 203 | #define USB_FUNCTION_CF_SELF (0x40) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 204 | #define USB_FUNCTION_CF_RWUP (0x20) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 205 | #define USB_FUNCTION_CF_NORWUP (0x00) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 206 | #define USB_FUNCTION_EP_ERROR (0xff) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 207 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 208 | #define USB_FUNCTION_EP_OUT (0x00) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 209 | #define USB_FUNCTION_EP_IN (0x80) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 210 | #define USB_FUNCTION_EP_CNTRL (0x00) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 211 | #define USB_FUNCTION_EP_ISO (0x01) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 212 | #define USB_FUNCTION_EP_BULK (0x02) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 213 | #define USB_FUNCTION_EP_INT (0x03) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 214 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 215 | #define USB_FUNCTION_STANDARD_REQUEST (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 216 | #define USB_FUNCTION_CLASS_REQUEST (0x0020u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 217 | #define USB_FUNCTION_VENDOR_REQUEST (0x0040u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 218 | #define USB_FUNCTION_DEVICE_REQUEST (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 219 | #define USB_FUNCTION_INTERFACE_REQUEST (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 220 | #define USB_FUNCTION_ENDPOINT_REQUEST (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 221 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 222 | #define USB_FUNCTION_GETSTATUS_BUSPOWERD (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 223 | #define USB_FUNCTION_GETSTATUS_SELFPOWERD (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 224 | #define USB_FUNCTION_GETSTATUS_REMOTEWAKEUP (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 225 | #define USB_FUNCTION_GETSTATUS_NOTHALT (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 226 | #define USB_FUNCTION_GETSTATUS_HALT (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 227 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 228 | #define USB_FUNCTION_FEATURE_ENDPOINT_HALT (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 229 | #define USB_FUNCTION_FEATURE_REMOTE_WAKEUP (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 230 | #define USB_FUNCTION_FEATURE_TEST_MODE (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 231 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 232 | #define USB_FUNCTION_bRequest (0xff00u) /* b15-8:bRequest */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 233 | #define USB_FUNCTION_bmRequestType (0x00ffu) /* b7-0: bmRequestType */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 234 | #define USB_FUNCTION_bmRequestTypeDir (0x0080u) /* b7 : Data transfer direction */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 235 | #define USB_FUNCTION_bmRequestTypeType (0x0060u) /* b6-5: Type */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 236 | #define USB_FUNCTION_bmRequestTypeRecip (0x001fu) /* b4-0: Recipient */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 237 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 238 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 239 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 240 | Variable Externs |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 241 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 242 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 243 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 244 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 245 | Functions Prototypes |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 246 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 247 | #if 0 |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 248 | void R_USB_api_function_init(uint16_t root, uint8_t int_level, uint16_t mode, uint16_t clockmode); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 249 | uint16_t R_USB_api_function_IsConfigured(uint16_t root); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 250 | uint16_t R_USB_api_function_CtrlReadStart(uint16_t root, uint32_t size, uint8_t *data); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 251 | void R_USB_api_function_CtrlWriteStart(uint16_t root, uint32_t size, uint8_t *data); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 252 | uint16_t R_USB_api_function_start_send_transfer(uint16_t root, uint16_t pipe, uint32_t size, uint8_t *data); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 253 | uint16_t R_USB_api_function_check_pipe_status(uint16_t root, uint16_t pipe, uint32_t *size); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 254 | void R_USB_api_function_clear_pipe_status(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 255 | void R_USB_api_function_start_receive_transfer(uint16_t root, uint16_t pipe, uint32_t size, uint8_t *data); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 256 | void R_USB_api_function_set_pid_buf(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 257 | void R_USB_api_function_set_pid_nak(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 258 | void R_USB_api_function_set_pid_stall(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 259 | void R_USB_api_function_clear_pid_stall(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 260 | uint16_t R_USB_api_function_get_pid(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 261 | int32_t R_USB_api_function_check_stall(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 262 | void R_USB_api_function_set_sqclr(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 263 | void R_USB_api_function_set_sqset(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 264 | void R_USB_api_function_set_csclr(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 265 | void R_USB_api_function_set_curpipe(uint16_t root, uint16_t pipe, uint16_t fifosel, uint16_t isel, uint16_t mbw); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 266 | void R_USB_api_function_clear_brdy_sts(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 267 | void R_USB_api_function_clear_bemp_sts(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 268 | void R_USB_api_function_clear_nrdy_sts(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 269 | void R_USB_api_function_enable_brdy_int(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 270 | void R_USB_api_function_disable_brdy_int(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 271 | void R_USB_api_function_enable_bemp_int(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 272 | void R_USB_api_function_disable_bemp_int(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 273 | void R_USB_api_function_enable_nrdy_int(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 274 | void R_USB_api_function_disable_nrdy_int(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 275 | void R_USB_api_function_stop_transfer(uint16_t root, uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 276 | #endif |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 277 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 278 | #ifdef USB0_FUNCTION_API_H |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 279 | void usb0_function_interrupt(uint32_t int_sense); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 280 | void usb0_function_dma_interrupt_d0fifo(uint32_t int_sense); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 281 | void usb0_function_dma_interrupt_d1fifo(uint32_t int_sense); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 282 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 283 | void usb0_function_Class0(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 284 | void usb0_function_Class1(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 285 | void usb0_function_Class2(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 286 | void usb0_function_Class3(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 287 | void usb0_function_Class4(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 288 | void usb0_function_Class5(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 289 | void usb0_function_Vendor0(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 290 | void usb0_function_Vendor1(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 291 | void usb0_function_Vendor2(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 292 | void usb0_function_Vendor3(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 293 | void usb0_function_Vendor4(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 294 | void usb0_function_Vendor5(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 295 | void usb0_function_ResetDescriptor(uint16_t mode); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 296 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 297 | IRQn_Type Userdef_USB_usb0_function_d0fifo_dmaintid(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 298 | IRQn_Type Userdef_USB_usb0_function_d1fifo_dmaintid(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 299 | void Userdef_USB_usb0_function_attach(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 300 | void Userdef_USB_usb0_function_detach(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 301 | void Userdef_USB_usb0_function_delay_1ms(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 302 | void Userdef_USB_usb0_function_delay_xms(uint32_t msec); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 303 | void Userdef_USB_usb0_function_delay_10us(uint32_t usec); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 304 | void Userdef_USB_usb0_function_delay_500ns(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 305 | void Userdef_USB_usb0_function_start_dma(USB_FUNCTION_DMA_t *dma, uint16_t dfacc); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 306 | uint32_t Userdef_USB_usb0_function_stop_dma0(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 307 | uint32_t Userdef_USB_usb0_function_stop_dma1(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 308 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 309 | void usb0_function_stop_transfer(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 310 | void usb0_function_enable_brdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 311 | void usb0_function_disable_brdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 312 | void usb0_function_enable_bemp_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 313 | void usb0_function_disable_bemp_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 314 | void usb0_function_enable_nrdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 315 | void usb0_function_disable_nrdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 316 | #endif |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 317 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 318 | #ifdef USB1_FUNCTION_API_H |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 319 | void usb1_function_interrupt(uint32_t int_sense); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 320 | void usb1_function_dma_interrupt_d0fifo(uint32_t int_sense); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 321 | void usb1_function_dma_interrupt_d1fifo(uint32_t int_sense); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 322 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 323 | void usb1_function_Class0(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 324 | void usb1_function_Class1(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 325 | void usb1_function_Class2(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 326 | void usb1_function_Class3(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 327 | void usb1_function_Class4(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 328 | void usb1_function_Class5(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 329 | void usb1_function_Vendor0(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 330 | void usb1_function_Vendor1(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 331 | void usb1_function_Vendor2(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 332 | void usb1_function_Vendor3(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 333 | void usb1_function_Vendor4(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 334 | void usb1_function_Vendor5(uint16_t type, uint16_t req, uint16_t value, uint16_t index, uint16_t length); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 335 | void usb1_function_ResetDescriptor(uint16_t mode); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 336 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 337 | IRQn_Type Userdef_USB_usb1_function_d0fifo_dmaintid(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 338 | IRQn_Type Userdef_USB_usb1_function_d1fifo_dmaintid(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 339 | void Userdef_USB_usb1_function_attach(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 340 | void Userdef_USB_usb1_function_detach(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 341 | void Userdef_USB_usb1_function_delay_1ms(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 342 | void Userdef_USB_usb1_function_delay_xms(uint32_t msec); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 343 | void Userdef_USB_usb1_function_delay_10us(uint32_t usec); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 344 | void Userdef_USB_usb1_function_delay_500ns(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 345 | void Userdef_USB_usb1_function_start_dma(USB_FUNCTION_DMA_t *dma, uint16_t dfacc); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 346 | uint32_t Userdef_USB_usb1_function_stop_dma0(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 347 | uint32_t Userdef_USB_usb1_function_stop_dma1(void); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 348 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 349 | void usb1_function_stop_transfer(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 350 | void usb1_function_enable_brdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 351 | void usb1_function_disable_brdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 352 | void usb1_function_enable_bemp_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 353 | void usb1_function_disable_bemp_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 354 | void usb1_function_enable_nrdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 355 | void usb1_function_disable_nrdy_int(uint16_t pipe); |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 356 | #endif |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 357 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 358 | #ifdef __cplusplus |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 359 | } |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 360 | #endif |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 361 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 362 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 363 | #endif /* USB_FUNCTION_API_H */ |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 364 | |
frq08711@LMECWL0871.LME.ST.COM | 1:2a3ae13b45ef | 365 | /* End of File */ |