#include <stdbool.h>
#include <stdint.h>
#include "kernel/err.h"
#include "errorcode.h"
Go to the source code of this file.
|
#define | LOG_RX_PACKETS 32 |
|
#define | E_NET_WRXMAC ( E_NET + 0x01 ) |
|
#define | E_NET_WRXMAC_DESCR "Could not retrieve MAC" |
|
Get packet log at position pos.
Maximum is LOG_RX_PACKTS.
- Returns
- A PacketLog_t pointer for the given position, or NULL if the packet log is not enabled or there is no packet logged at that location.
Definition at line 71 of file network.c.
uint32_t netEventFailedCount |
( |
| ) |
|
Returns the number of events failed to be transmitted since the the function was previously invoked.
Calling this function will also reset the function counter.
- Returns
- The number of transmission failures.
Definition at line 667 of file network.c.
Returns whether or not the Ip is valid.
- Return values
-
true | Its valid |
false | Its not valid. |
Definition at line 677 of file network.c.
bool netMuxDest |
( |
uint32_t |
destIp, |
|
|
uint16_t * |
destMac |
|
) |
| |
Sets the IPMux destination.
- Parameters
-
destIP | Destination IP |
destMAC | Destinaion Mac |
Definition at line 361 of file network.c.
void netSetIp |
( |
uint8_t * |
ip | ) |
|
Sets the Ip address to the network.
- Parameters
-
Definition at line 475 of file network.c.
void netShowInfo |
( |
bool |
extended | ) |
|
Shows network configuration information.
- Parameters
-
extended | show extended information. |
Definition at line 541 of file network.c.
Reset the packet log.
Will cause the packet buffer to be filled again up to LOG_RX_PACKETS packets.
Definition at line 77 of file network.c.