Loading...
Searching...
No Matches
ucg_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 Ucglib function ucg_SetUserPtr, prior to the call to ucg_Init.

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

Definition at line 42 of file ucg_riotos.h.

#include <ucg_riotos.h>

Data Fields

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

Field Documentation

◆ device_index

unsigned int ucg_riotos_t::device_index

Index of the SPI device.

Definition at line 45 of file ucg_riotos.h.

◆ pin_cd

gpio_t ucg_riotos_t::pin_cd

Pin for SPI CD, GPIO_UNDEF if not used.

Definition at line 47 of file ucg_riotos.h.

◆ pin_cs

gpio_t ucg_riotos_t::pin_cs

Pin for SPI CS, GPIO_UNDEF if not used.

Definition at line 46 of file ucg_riotos.h.

◆ pin_reset

gpio_t ucg_riotos_t::pin_reset

Pin for RESET, GPIO_UNDEF if not used.

Definition at line 48 of file ucg_riotos.h.

◆ user_ptr

void* ucg_riotos_t::user_ptr

Pointer to optionally store any additional user-data.

Definition at line 43 of file ucg_riotos.h.


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