Loading...
Searching...
No Matches
u8x8_riotos_t Struct Reference

Holds RIOT-OS specific peripheral data. More...

Detailed Description

Holds RIOT-OS specific peripheral data.

This structure has to be set via the U8g2 function u8g2_SetUserPtr, prior the call to u8x8_InitDisplay or u8g2_InitDisplay respectively.

The structure can be easily extended with further required definitions (e.g other pins) if necessary, without breaking the RIOT-OS adaptation of U8g2.

Definition at line 42 of file u8x8_riotos.h.

#include <u8x8_riotos.h>

Data Fields

void * user_ptr
 Pointer to optionally store any additional user-data.
 
unsigned int device_index
 Index of the SPI/I2C device.
 
gpio_t pin_cs
 Pin for SPI CS, GPIO_UNDEF if not used.
 
gpio_t pin_dc
 Pin for SPI DC, GPIO_UNDEF if not used.
 
gpio_t pin_reset
 Pin for RESET, GPIO_UNDEF if not used.
 

Field Documentation

◆ device_index

unsigned int u8x8_riotos_t::device_index

Index of the SPI/I2C device.

Definition at line 45 of file u8x8_riotos.h.

◆ pin_cs

gpio_t u8x8_riotos_t::pin_cs

Pin for SPI CS, GPIO_UNDEF if not used.

Definition at line 46 of file u8x8_riotos.h.

◆ pin_dc

gpio_t u8x8_riotos_t::pin_dc

Pin for SPI DC, GPIO_UNDEF if not used.

Definition at line 47 of file u8x8_riotos.h.

◆ pin_reset

gpio_t u8x8_riotos_t::pin_reset

Pin for RESET, GPIO_UNDEF if not used.

Definition at line 48 of file u8x8_riotos.h.

◆ user_ptr

void* u8x8_riotos_t::user_ptr

Pointer to optionally store any additional user-data.

Definition at line 43 of file u8x8_riotos.h.


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