Webserver+3d print

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers bcm43362_driver.h Source File

bcm43362_driver.h

Go to the documentation of this file.
00001 /**
00002  * @file bcm43362_driver.h
00003  * @brief BCM43362 Wi-Fi controller
00004  *
00005  * @section License
00006  *
00007  * Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
00008  *
00009  * This file is part of CycloneTCP Open.
00010  *
00011  * This program is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU General Public License
00013  * as published by the Free Software Foundation; either version 2
00014  * of the License, or (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software Foundation,
00023  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00024  *
00025  * @author Oryx Embedded SARL (www.oryx-embedded.com)
00026  * @version 1.7.6
00027  **/
00028 
00029 #ifndef _BCM43362_DRIVER_H
00030 #define _BCM43362_DRIVER_H
00031 
00032 //Dependencies
00033 #include "core/nic.h"
00034 
00035 //BCM43362 driver (STA mode)
00036 extern const NicDriver bcm43362StaDriver;
00037 //BCM43362 driver (AP mode)
00038 extern const NicDriver bcm43362ApDriver;
00039 
00040 //BCM43362 related functions
00041 error_t bcm43362Init(NetInterface *interface);
00042 
00043 void bcm43362Tick(NetInterface *interface);
00044 
00045 void bcm43362EnableIrq(NetInterface *interface);
00046 void bcm43362DisableIrq(NetInterface *interface);
00047 bool_t bcm43362IrqHandler(void);
00048 void bcm43362EventHandler(NetInterface *interface);
00049 
00050 error_t bcm43362SendPacket(NetInterface *interface,
00051    const NetBuffer *buffer, size_t offset);
00052 
00053 error_t bcm43362SetMulticastFilter(NetInterface *interface);
00054 
00055 void bcm43362AppWifiEvent(uint8_t msgType, void *msg);
00056 void bcm43362AppEthEvent(uint8_t msgType, void *msg, void *ctrlBuf);
00057 
00058 #endif
00059