Loading...
Searching...
No Matches

DOSE netdev device. More...

Detailed Description

DOSE netdev device.

Definition at line 186 of file dose.h.

#include <dose.h>

Data Fields

netdev_t netdev
 Extended netdev structure.
 
eui48_t mac_addr
 This device's MAC address.
 
uint8_t opts
 Driver options.
 
dose_state_t state
 Current state of the driver's state machine.
 
mutex_t state_mtx
 Is unlocked every time a state is (re)entered.
 
uint8_t recv_buf [CONFIG_DOSE_RX_BUF_LEN]
 Receive buffer for incoming frames.
 
chunk_ringbuf_t rb
 Ringbuffer to store received frames.
 
void * recv_buf_ptr_last
 Last value of recv_buf_ptr when the watchdog visited.
 
gpio_t sense_pin
 GPIO to sense for start bits on the UART's rx line.
 
gpio_t standby_pin
 GPIO to put the CAN transceiver in standby mode.
 
ztimer_t timeout
 Timeout timer ensuring always to get back to IDLE state.
 
uint32_t timeout_base
 Base timeout in us.
 
uart_t uart
 UART device to use.
 
uint8_t uart_octet
 Last received octet.
 
uint8_t flags
 Several flags.
 
- Data Fields inherited from netdev
const struct netdev_driverdriver
 ptr to that driver's interface.
 
netdev_event_cb_t event_callback
 callback for device events
 
void * context
 ptr to network stack context
 

Field Documentation

◆ flags

uint8_t dose_t::flags

Several flags.

Definition at line 209 of file dose.h.

◆ mac_addr

eui48_t dose_t::mac_addr

This device's MAC address.

Definition at line 188 of file dose.h.

◆ netdev

netdev_t dose_t::netdev

Extended netdev structure.

Definition at line 187 of file dose.h.

◆ opts

uint8_t dose_t::opts

Driver options.

Definition at line 189 of file dose.h.

◆ rb

chunk_ringbuf_t dose_t::rb

Ringbuffer to store received frames.


Definition at line 193 of file dose.h.

◆ recv_buf

uint8_t dose_t::recv_buf[CONFIG_DOSE_RX_BUF_LEN]

Receive buffer for incoming frames.

Definition at line 192 of file dose.h.

◆ recv_buf_ptr_last

void* dose_t::recv_buf_ptr_last

Last value of recv_buf_ptr when the watchdog visited.

Definition at line 199 of file dose.h.

◆ sense_pin

gpio_t dose_t::sense_pin

GPIO to sense for start bits on the UART's rx line.

Definition at line 202 of file dose.h.

◆ standby_pin

gpio_t dose_t::standby_pin

GPIO to put the CAN transceiver in standby mode.

Definition at line 204 of file dose.h.

◆ state

dose_state_t dose_t::state

Current state of the driver's state machine.

Definition at line 190 of file dose.h.

◆ state_mtx

mutex_t dose_t::state_mtx

Is unlocked every time a state is (re)entered.

Definition at line 191 of file dose.h.

◆ timeout

ztimer_t dose_t::timeout

Timeout timer ensuring always to get back to IDLE state.

Definition at line 205 of file dose.h.

◆ timeout_base

uint32_t dose_t::timeout_base

Base timeout in us.

Definition at line 206 of file dose.h.

◆ uart

uart_t dose_t::uart

UART device to use.

Definition at line 207 of file dose.h.

◆ uart_octet

uint8_t dose_t::uart_octet

Last received octet.

Definition at line 208 of file dose.h.


The documentation for this struct was generated from the following file: