test public
Dependencies: HttpServer_snapshot_mbed-os
mbed-gr-libs/R_BSP/tools/R_BSP_mbed_fns.h@0:e9fd5575b10e, 2019-10-18 (annotated)
- Committer:
- anhtran
- Date:
- Fri Oct 18 03:09:43 2019 +0000
- Revision:
- 0:e9fd5575b10e
abc
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
anhtran | 0:e9fd5575b10e | 1 | /******************************************************************************* |
anhtran | 0:e9fd5575b10e | 2 | * DISCLAIMER |
anhtran | 0:e9fd5575b10e | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
anhtran | 0:e9fd5575b10e | 4 | * intended for use with Renesas products. No other uses are authorized. This |
anhtran | 0:e9fd5575b10e | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
anhtran | 0:e9fd5575b10e | 6 | * all applicable laws, including copyright laws. |
anhtran | 0:e9fd5575b10e | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
anhtran | 0:e9fd5575b10e | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
anhtran | 0:e9fd5575b10e | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
anhtran | 0:e9fd5575b10e | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
anhtran | 0:e9fd5575b10e | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
anhtran | 0:e9fd5575b10e | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
anhtran | 0:e9fd5575b10e | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
anhtran | 0:e9fd5575b10e | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
anhtran | 0:e9fd5575b10e | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
anhtran | 0:e9fd5575b10e | 16 | * Renesas reserves the right, without notice, to make changes to this software |
anhtran | 0:e9fd5575b10e | 17 | * and to discontinue the availability of this software. By using this software, |
anhtran | 0:e9fd5575b10e | 18 | * you agree to the additional terms and conditions found by accessing the |
anhtran | 0:e9fd5575b10e | 19 | * following link: |
anhtran | 0:e9fd5575b10e | 20 | * http://www.renesas.com/disclaimer* |
anhtran | 0:e9fd5575b10e | 21 | * Copyright (C) 2015 Renesas Electronics Corporation. All rights reserved. |
anhtran | 0:e9fd5575b10e | 22 | *******************************************************************************/ |
anhtran | 0:e9fd5575b10e | 23 | |
anhtran | 0:e9fd5575b10e | 24 | |
anhtran | 0:e9fd5575b10e | 25 | #ifndef R_BSP_MBED_FNS_H |
anhtran | 0:e9fd5575b10e | 26 | #define R_BSP_MBED_FNS_H |
anhtran | 0:e9fd5575b10e | 27 | |
anhtran | 0:e9fd5575b10e | 28 | /****************************************************************************** |
anhtran | 0:e9fd5575b10e | 29 | Includes <System Includes> , "Project Includes" |
anhtran | 0:e9fd5575b10e | 30 | ******************************************************************************/ |
anhtran | 0:e9fd5575b10e | 31 | #include "r_typedefs.h" |
anhtran | 0:e9fd5575b10e | 32 | #include "ioif_aio.h" |
anhtran | 0:e9fd5575b10e | 33 | |
anhtran | 0:e9fd5575b10e | 34 | #ifdef __cplusplus |
anhtran | 0:e9fd5575b10e | 35 | extern "C" |
anhtran | 0:e9fd5575b10e | 36 | { |
anhtran | 0:e9fd5575b10e | 37 | #endif /* __cplusplus */ |
anhtran | 0:e9fd5575b10e | 38 | |
anhtran | 0:e9fd5575b10e | 39 | typedef struct { |
anhtran | 0:e9fd5575b10e | 40 | void *(*initialise_one)(const int_t channel, const void* const config_data, int32_t* const p_errno); |
anhtran | 0:e9fd5575b10e | 41 | int_t (*uninitialise_one)(const int_t channel, const void* const driver_instance, int32_t* const p_errno); |
anhtran | 0:e9fd5575b10e | 42 | int_t (*open)(void *driver_instance, const char_t *pathname, int_t flags, int_t mode, int32_t* p_errno); |
anhtran | 0:e9fd5575b10e | 43 | int_t (*close)(void *fd, int32_t* p_errno); |
anhtran | 0:e9fd5575b10e | 44 | int_t (*ioctl)(void *fd, int_t request, void *buf, int32_t* p_errno); |
anhtran | 0:e9fd5575b10e | 45 | int_t (*read_a)(void *fd, struct aiocb *p_aio, int32_t* p_errno); |
anhtran | 0:e9fd5575b10e | 46 | int_t (*write_a)(void *fd, struct aiocb *p_aio, int32_t* p_errno); |
anhtran | 0:e9fd5575b10e | 47 | int_t (*cancel)(void *fd, struct aiocb *p_aio, int32_t* p_errno); |
anhtran | 0:e9fd5575b10e | 48 | } RBSP_MBED_FNS; |
anhtran | 0:e9fd5575b10e | 49 | |
anhtran | 0:e9fd5575b10e | 50 | #ifdef __cplusplus |
anhtran | 0:e9fd5575b10e | 51 | } |
anhtran | 0:e9fd5575b10e | 52 | #endif /* __cplusplus */ |
anhtran | 0:e9fd5575b10e | 53 | |
anhtran | 0:e9fd5575b10e | 54 | #endif /* R_BSP_MBED_FNS_H */ |