|
enc28j60 library
1.0
platform agnostic enc28j60 driver with asynchronous IO support and fully compliant with errata
|
Structure holding important informations about enc28j60 and about the latest transmission performed. More...
#include <enc28j60-struct.example.h>

Public Attributes | |
| enc28j60_spi_callback | callback |
| Callback to be called when transfer finishes. | |
| char * | frame |
| Used internally when asynchronous request is called and error happens to retry the request if needed. More... | |
| unsigned | length |
| Used internally when asynchronous request is called and error happens to retry the request if needed. More... | |
| uint16_t | rxstatus |
| Status read from buffer. More... | |
| uint16_t | retry_count |
| How many retries were there before this call to spi_transfer. | |
| uint16_t | cur_rx_frame |
| Pointer where the currently-processed received frame starts. | |
| uint16_t | next_rx_frame |
| Pointer where the next received frame starts. | |
| uint16_t | current_pointer |
| Pointer to where currently transmitted ethernet frame starts (pointing to the zero control frame) | |
| uint16_t | erxst |
| Saved ERXSTL:ERXSTH register value. | |
| uint16_t | erxnd |
| Saved ERXNDL:ERXNDH register value. | |
| uint8_t | bank |
| Low/Least significant 2 bits contain which bank is currently used (0-3). | |
| uint8_t | current_action |
| Indicates if current/previous operation is/was RX or TX. | |
Structure holding important informations about enc28j60 and about the latest transmission performed.
TODO: Modify this structure so you can figure out which SPI port to use (or hardcode it and keep this struct untouched, as you wish).
| char* enc28j60::frame |
Used internally when asynchronous request is called and error happens to retry the request if needed.
This is an argument of enc28j60_readframe or enc28j60_writeframe.
| unsigned enc28j60::length |
Used internally when asynchronous request is called and error happens to retry the request if needed.
This is an argument of enc28j60_readframe or enc28j60_writeframe, or this can be less if the actual length of the received frame was less.
| uint16_t enc28j60::rxstatus |
Status read from buffer.
See datasheet page 41 and 44 and ENC28J60_RXSTATUS_* macros for testing each bit.
1.8.13