USB device stack
Dependents: mbed-mX-USB-TEST1 USBMSD_SD_HID_HelloWorld HidTest MIDI_usb_bridge ... more
Legacy Warning
This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.
Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.
targets/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_api.h@71:53949e6131f6, 2017-07-27 (annotated)
- Committer:
- Kojto
- Date:
- Thu Jul 27 12:14:04 2017 +0100
- Revision:
- 71:53949e6131f6
Update libraries
Fixes the previous commmit, as some devices were not copied. USBDevice contains
now targets directory with all targets implementations
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 71:53949e6131f6 | 1 | /******************************************************************************* |
Kojto | 71:53949e6131f6 | 2 | * DISCLAIMER |
Kojto | 71:53949e6131f6 | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
Kojto | 71:53949e6131f6 | 4 | * intended for use with Renesas products. No other uses are authorized. This |
Kojto | 71:53949e6131f6 | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
Kojto | 71:53949e6131f6 | 6 | * all applicable laws, including copyright laws. |
Kojto | 71:53949e6131f6 | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
Kojto | 71:53949e6131f6 | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
Kojto | 71:53949e6131f6 | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
Kojto | 71:53949e6131f6 | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
Kojto | 71:53949e6131f6 | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
Kojto | 71:53949e6131f6 | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
Kojto | 71:53949e6131f6 | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
Kojto | 71:53949e6131f6 | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
Kojto | 71:53949e6131f6 | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
Kojto | 71:53949e6131f6 | 16 | * Renesas reserves the right, without notice, to make changes to this software |
Kojto | 71:53949e6131f6 | 17 | * and to discontinue the availability of this software. By using this software, |
Kojto | 71:53949e6131f6 | 18 | * you agree to the additional terms and conditions found by accessing the |
Kojto | 71:53949e6131f6 | 19 | * following link: |
Kojto | 71:53949e6131f6 | 20 | * http://www.renesas.com/disclaimer |
Kojto | 71:53949e6131f6 | 21 | * Copyright (C) 2012 - 2014 Renesas Electronics Corporation. All rights reserved. |
Kojto | 71:53949e6131f6 | 22 | *******************************************************************************/ |
Kojto | 71:53949e6131f6 | 23 | /******************************************************************************* |
Kojto | 71:53949e6131f6 | 24 | * File Name : usb1_function_api.h |
Kojto | 71:53949e6131f6 | 25 | * $Rev: 1116 $ |
Kojto | 71:53949e6131f6 | 26 | * $Date:: 2014-07-09 16:29:19 +0900#$ |
Kojto | 71:53949e6131f6 | 27 | * Description : RZ/A1H R7S72100 USB Sample Program |
Kojto | 71:53949e6131f6 | 28 | *******************************************************************************/ |
Kojto | 71:53949e6131f6 | 29 | #ifndef USB1_FUNCTION_API_H |
Kojto | 71:53949e6131f6 | 30 | #define USB1_FUNCTION_API_H |
Kojto | 71:53949e6131f6 | 31 | |
Kojto | 71:53949e6131f6 | 32 | #ifdef __cplusplus |
Kojto | 71:53949e6131f6 | 33 | extern "C" { |
Kojto | 71:53949e6131f6 | 34 | #endif |
Kojto | 71:53949e6131f6 | 35 | |
Kojto | 71:53949e6131f6 | 36 | /******************************************************************************* |
Kojto | 71:53949e6131f6 | 37 | Includes <System Includes> , "Project Includes" |
Kojto | 71:53949e6131f6 | 38 | *******************************************************************************/ |
Kojto | 71:53949e6131f6 | 39 | |
Kojto | 71:53949e6131f6 | 40 | |
Kojto | 71:53949e6131f6 | 41 | /******************************************************************************* |
Kojto | 71:53949e6131f6 | 42 | Typedef definitions |
Kojto | 71:53949e6131f6 | 43 | *******************************************************************************/ |
Kojto | 71:53949e6131f6 | 44 | |
Kojto | 71:53949e6131f6 | 45 | |
Kojto | 71:53949e6131f6 | 46 | /******************************************************************************* |
Kojto | 71:53949e6131f6 | 47 | Macro definitions |
Kojto | 71:53949e6131f6 | 48 | *******************************************************************************/ |
Kojto | 71:53949e6131f6 | 49 | |
Kojto | 71:53949e6131f6 | 50 | |
Kojto | 71:53949e6131f6 | 51 | /******************************************************************************* |
Kojto | 71:53949e6131f6 | 52 | Variable Externs |
Kojto | 71:53949e6131f6 | 53 | *******************************************************************************/ |
Kojto | 71:53949e6131f6 | 54 | |
Kojto | 71:53949e6131f6 | 55 | |
Kojto | 71:53949e6131f6 | 56 | /******************************************************************************* |
Kojto | 71:53949e6131f6 | 57 | Exported global variables and functions (to be accessed by other files) |
Kojto | 71:53949e6131f6 | 58 | *******************************************************************************/ |
Kojto | 71:53949e6131f6 | 59 | void usb1_api_function_init(uint8_t int_level, uint16_t mode, uint16_t clockmode); |
Kojto | 71:53949e6131f6 | 60 | uint16_t usb1_api_function_IsConfigured(void); |
Kojto | 71:53949e6131f6 | 61 | uint16_t usb1_function_GetDeviceState(void); |
Kojto | 71:53949e6131f6 | 62 | uint16_t usb1_api_function_CtrlReadStart(uint32_t size, uint8_t *data); |
Kojto | 71:53949e6131f6 | 63 | void usb1_api_function_CtrlWriteStart(uint32_t size, uint8_t *data); |
Kojto | 71:53949e6131f6 | 64 | uint16_t usb1_api_function_start_send_transfer(uint16_t pipe, uint32_t size, uint8_t *data); |
Kojto | 71:53949e6131f6 | 65 | uint16_t usb1_api_function_check_pipe_status(uint16_t pipe, uint32_t *size); |
Kojto | 71:53949e6131f6 | 66 | void usb1_api_function_clear_pipe_status(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 67 | void usb1_api_function_start_receive_transfer(uint16_t pipe, uint32_t size, uint8_t *data); |
Kojto | 71:53949e6131f6 | 68 | void usb1_api_function_set_pid_buf(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 69 | void usb1_api_function_set_pid_nak(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 70 | void usb1_api_function_set_pid_stall(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 71 | void usb1_api_function_clear_pid_stall(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 72 | uint16_t usb1_api_function_get_pid(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 73 | int32_t usb1_api_function_check_stall(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 74 | void usb1_api_function_set_sqclr(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 75 | void usb1_api_function_set_sqset(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 76 | void usb1_api_function_set_csclr(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 77 | void usb1_api_function_set_curpipe(uint16_t pipe, uint16_t fifosel, uint16_t isel, uint16_t mbw); |
Kojto | 71:53949e6131f6 | 78 | void usb1_api_function_clear_brdy_sts(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 79 | void usb1_api_function_clear_bemp_sts(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 80 | void usb1_api_function_clear_nrdy_sts(uint16_t pipe); |
Kojto | 71:53949e6131f6 | 81 | |
Kojto | 71:53949e6131f6 | 82 | void usb1_function_ClearFeature(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 83 | void usb1_function_SetFeature(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 84 | void usb1_function_SetAddress(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 85 | void usb1_function_SetDescriptor(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 86 | void usb1_function_SetConfiguration(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 87 | void usb1_function_SetInterface(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 88 | void usb1_function_SynchFrame(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 89 | void usb1_function_GetStatus(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 90 | void usb1_function_GetDescriptor(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 91 | void usb1_function_GetConfiguration(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 92 | void usb1_function_GetInterface(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 93 | void usb1_function_Resrv_0(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 94 | void usb1_function_Resrv_123(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 95 | void usb1_function_Resrv_4(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 96 | void usb1_function_Resrv_5(uint16_t type, uint16_t value, uint16_t index, uint16_t length); |
Kojto | 71:53949e6131f6 | 97 | |
Kojto | 71:53949e6131f6 | 98 | #ifdef __cplusplus |
Kojto | 71:53949e6131f6 | 99 | } |
Kojto | 71:53949e6131f6 | 100 | #endif |
Kojto | 71:53949e6131f6 | 101 | |
Kojto | 71:53949e6131f6 | 102 | #endif /* USB1_FUNCTION_API_H */ |
Kojto | 71:53949e6131f6 | 103 | |
Kojto | 71:53949e6131f6 | 104 | /* End of File */ |