Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
cpp/Net.cpp@3:0a94993be1f6, 2013-04-04 (annotated)
- Committer:
- nyatla
- Date:
- Thu Apr 04 08:22:57 2013 +0000
- Revision:
- 3:0a94993be1f6
add modules;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nyatla | 3:0a94993be1f6 | 1 | #pragma once |
nyatla | 3:0a94993be1f6 | 2 | //////////////////////////////////////////////////////////////////////////////// |
nyatla | 3:0a94993be1f6 | 3 | // Net.h |
nyatla | 3:0a94993be1f6 | 4 | //////////////////////////////////////////////////////////////////////////////// |
nyatla | 3:0a94993be1f6 | 5 | #include "Net.h" |
nyatla | 3:0a94993be1f6 | 6 | #include "NetConfig.h" |
nyatla | 3:0a94993be1f6 | 7 | |
nyatla | 3:0a94993be1f6 | 8 | namespace MiMic |
nyatla | 3:0a94993be1f6 | 9 | { |
nyatla | 3:0a94993be1f6 | 10 | Net::Net(NetConfig& i_cfg) |
nyatla | 3:0a94993be1f6 | 11 | { |
nyatla | 3:0a94993be1f6 | 12 | NyLPC_cNet_initialize(&(this->_inst)); |
nyatla | 3:0a94993be1f6 | 13 | NyLPC_cNet_start(&(this->_inst),&(i_cfg._inst)); |
nyatla | 3:0a94993be1f6 | 14 | } |
nyatla | 3:0a94993be1f6 | 15 | Net::~Net() |
nyatla | 3:0a94993be1f6 | 16 | { |
nyatla | 3:0a94993be1f6 | 17 | NyLPC_cNet_finalize(&(this->_inst)); |
nyatla | 3:0a94993be1f6 | 18 | } |
nyatla | 3:0a94993be1f6 | 19 | } |