Loading...
Searching...
No Matches
encx24j600.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "mutex.h"
21#include "periph/spi.h"
22#include "periph/gpio.h"
23#include "net/netdev.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33typedef struct {
35 spi_t spi;
36 gpio_t cs;
37 gpio_t int_pin;
38 uint16_t rx_next_ptr;
40
44typedef struct {
45 spi_t spi;
46 gpio_t cs_pin;
47 gpio_t int_pin;
49
61void encx24j600_setup(encx24j600_t *dev, const encx24j600_params_t *params, uint8_t index);
62
63#ifdef __cplusplus
64}
65#endif
Definitions low-level network driver interface.
Low-level GPIO peripheral driver interface definitions.
void encx24j600_setup(encx24j600_t *dev, const encx24j600_params_t *params, uint8_t index)
Setup an encx24j600 based device state.
struct netdev netdev_t
Forward declaration for netdev struct.
Definition netdev.h:285
Mutex for thread synchronization.
Low-level SPI peripheral driver interface definition.
Struct containing the needed peripheral configuration.
Definition encx24j600.h:44
gpio_t int_pin
interrupt pin
Definition encx24j600.h:47
spi_t spi
SPI line.
Definition encx24j600.h:45
gpio_t cs_pin
chip select pin
Definition encx24j600.h:46
encx24j600 netdev device
Definition encx24j600.h:33
uint16_t rx_next_ptr
ptr to next packet within devices memory
Definition encx24j600.h:38
gpio_t int_pin
SPI interrupt pin.
Definition encx24j600.h:37
netdev_t netdev
extended netdev structure
Definition encx24j600.h:34
gpio_t cs
SPI chip select pin.
Definition encx24j600.h:36
spi_t spi
SPI device the enc is connected to.
Definition encx24j600.h:35