Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
2a256f9c
Unverified
Commit
2a256f9c
authored
Mar 29, 2024
by
Juraj Andrássy
Committed by
GitHub
Mar 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LwipIntfDev - linkStatus added (#2081)
parent
c6221566
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
libraries/lwIP_Ethernet/src/LwipIntfDev.h
libraries/lwIP_Ethernet/src/LwipIntfDev.h
+13
-0
No files found.
libraries/lwIP_Ethernet/src/LwipIntfDev.h
View file @
2a256f9c
...
...
@@ -50,6 +50,11 @@
#define DEFAULT_MTU 1500
#endif
enum
EthernetLinkStatus
{
Unknown
,
LinkON
,
LinkOFF
};
extern
"C"
void
cyw43_hal_generate_laa_mac
(
__unused
int
idx
,
uint8_t
buf
[
6
]);
...
...
@@ -149,6 +154,9 @@ public:
wl_status_t
status
();
// Arduino Ethernet compatibility
EthernetLinkStatus
linkStatus
();
protected:
err_t
netif_init
();
void
check_route
();
...
...
@@ -442,6 +450,11 @@ wl_status_t LwipIntfDev<RawDev>::status() {
return
_started
?
(
connected
()
?
WL_CONNECTED
:
WL_DISCONNECTED
)
:
WL_NO_SHIELD
;
}
template
<
class
RawDev
>
EthernetLinkStatus
LwipIntfDev
<
RawDev
>::
linkStatus
()
{
return
RawDev
::
isLinkDetectable
()
?
_started
&&
RawDev
::
isLinked
()
?
LinkON
:
LinkOFF
:
Unknown
;
}
template
<
class
RawDev
>
err_t
LwipIntfDev
<
RawDev
>::
linkoutput_s
(
netif
*
netif
,
struct
pbuf
*
pbuf
)
{
LwipIntfDev
*
lid
=
(
LwipIntfDev
*
)
netif
->
state
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment