1 /***********************************************************************************************************************
2  * Copyright [2015-2017] Renesas Electronics Corporation and/or its licensors. All Rights Reserved.
3  *
4  * This file is part of Renesas SynergyTM Software Package (SSP)
5  *
6  * The contents of this file (the "contents") are proprietary and confidential to Renesas Electronics Corporation
7  * and/or its licensors ("Renesas") and subject to statutory and contractual protections.
8  *
9  * This file is subject to a Renesas SSP license agreement. Unless otherwise agreed in an SSP license agreement with
10  * Renesas: 1) you may not use, copy, modify, distribute, display, or perform the contents; 2) you may not use any name
11  * or mark of Renesas for advertising or publicity purposes or in connection with your use of the contents; 3) RENESAS
12  * MAKES NO WARRANTY OR REPRESENTATIONS ABOUT THE SUITABILITY OF THE CONTENTS FOR ANY PURPOSE; THE CONTENTS ARE PROVIDED
13  * "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
14  * PARTICULAR PURPOSE, AND NON-INFRINGEMENT; AND 4) RENESAS SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, OR
15  * CONSEQUENTIAL DAMAGES, INCLUDING DAMAGES RESULTING FROM LOSS OF USE, DATA, OR PROJECTS, WHETHER IN AN ACTION OF
16  * CONTRACT OR TORT, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE CONTENTS. Third-party contents
17  * included in this file may be subject to different terms.
18  **********************************************************************************************************************/
19 
20 #ifndef R_IOPORT_PRIVATE_API_H
21 #define R_IOPORT_PRIVATE_API_H
22 
23 /* Common macro for SSP header files. There is also a corresponding SSP_FOOTER macro at the end of this file. */
24 SSP_HEADER
25 
26 /***********************************************************************************************************************
27  * Private Instance API Functions. DO NOT USE! Use functions through Interface API structure instead.
28  **********************************************************************************************************************/
29 ssp_err_t R_IOPORT_EthernetModeCfg (ioport_ethernet_channel_t channel, ioport_ethernet_mode_t mode);
30 ssp_err_t R_IOPORT_Init (const ioport_cfg_t * p_cfg);
31 ssp_err_t R_IOPORT_PinsCfg (const ioport_cfg_t * p_cfg);
32 ssp_err_t R_IOPORT_PinCfg (ioport_port_pin_t pin, uint32_t cfg);
33 ssp_err_t R_IOPORT_PinDirectionSet (ioport_port_pin_t pin, ioport_direction_t direction);
34 ssp_err_t R_IOPORT_PinEventInputRead (ioport_port_pin_t pin, ioport_level_t * p_pin_event);
35 ssp_err_t R_IOPORT_PinEventOutputWrite (ioport_port_pin_t pin, ioport_level_t pin_value);
36 ssp_err_t R_IOPORT_PinRead (ioport_port_pin_t pin, ioport_level_t * p_pin_value);
37 ssp_err_t R_IOPORT_PinWrite (ioport_port_pin_t pin, ioport_level_t level);
38 ssp_err_t R_IOPORT_PortDirectionSet (ioport_port_t port, ioport_size_t direction_values, ioport_size_t mask);
39 ssp_err_t R_IOPORT_PortEventInputRead (ioport_port_t port, ioport_size_t * event_data);
40 ssp_err_t R_IOPORT_PortEventOutputWrite (ioport_port_t port, ioport_size_t event_data, ioport_size_t mask_value);
41 ssp_err_t R_IOPORT_PortRead (ioport_port_t port, ioport_size_t * p_port_value);
42 ssp_err_t R_IOPORT_PortWrite (ioport_port_t port, ioport_size_t value, ioport_size_t mask);
43 ssp_err_t R_IOPORT_VersionGet (ssp_version_t * p_data);
44 
45 /* Common macro for SSP header files. There is also a corresponding SSP_HEADER macro at the top of this file. */
46 SSP_FOOTER
47 
48 #endif /* R_IOPORT_PRIVATE_API_H */
49