]> git.sur5r.net Git - freertos/blob - FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ksz8851snl/ksz8851snl.h
Add the Labs projects provided in the V10.2.1_191129 zip file.
[freertos] / FreeRTOS-Labs / Source / FreeRTOS-Plus-TCP / portable / NetworkInterface / ksz8851snl / ksz8851snl.h
1 /**\r
2  *\r
3  * \file\r
4  *\r
5  * \brief KS8851SNL driver for SAM.\r
6  *\r
7  * Copyright (c) 2013-2015 Atmel Corporation. All rights reserved.\r
8  *\r
9  * \asf_license_start\r
10  *\r
11  * \page License\r
12  *\r
13  * Redistribution and use in source and binary forms, with or without\r
14  * modification, are permitted provided that the following conditions are met:\r
15  *\r
16  * 1. Redistributions of source code must retain the above copyright notice,\r
17  *    this list of conditions and the following disclaimer.\r
18  *\r
19  * 2. Redistributions in binary form must reproduce the above copyright notice,\r
20  *    this list of conditions and the following disclaimer in the documentation\r
21  *    and/or other materials provided with the distribution.\r
22  *\r
23  * 3. The name of Atmel may not be used to endorse or promote products derived\r
24  *    from this software without specific prior written permission.\r
25  *\r
26  * 4. This software may only be redistributed and used in connection with an\r
27  *    Atmel microcontroller product.\r
28  *\r
29  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED\r
30  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
31  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
32  * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR\r
33  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
34  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
35  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
36  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\r
37  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\r
38  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
39  * POSSIBILITY OF SUCH DAMAGE.\r
40  *\r
41  * \asf_license_stop\r
42  *\r
43  */\r
44 /*\r
45  * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>\r
46  */\r
47 \r
48 #ifndef KSZ8851SNL_H_INCLUDED\r
49 #define KSZ8851SNL_H_INCLUDED\r
50 \r
51 #include "gpio.h"\r
52 \r
53 void configure_intn(void (*p_handler) (uint32_t, uint32_t));\r
54 void ksz8851_reg_setbits(uint16_t reg, uint16_t bits_to_set);\r
55 void ksz8851_reg_clrbits(uint16_t reg, uint16_t bits_to_clr);\r
56 void ksz8851_fifo_read(uint8_t *buf, uint32_t len);\r
57 void ksz8851_fifo_write(uint8_t *buf, uint32_t ulActualLength, uint32_t ulFIFOLength);\r
58 void ksz8851_fifo_dummy(uint32_t len);\r
59 void ksz8851_reg_write(uint16_t reg, uint16_t wrdata);\r
60 uint16_t ksz8851_reg_read(uint16_t reg);\r
61 uint32_t ksz8851snl_init(void);\r
62 uint32_t ksz8851snl_reinit(void);\r
63 \r
64 uint32_t ksz8851snl_reset_rx( void );\r
65 uint32_t ksz8851snl_reset_tx( void );\r
66 \r
67 #endif /* KSZ8851SNL_H_INCLUDED */\r