CRpi
A library for rpi with intefaces to: gpio, pwm, dma
Data Fields
channelSetup_struct Struct Reference

Describes the setup of a channel. More...

Data Fields

Ccmb_desc dataArea
 
unsigned int pulsesPerCycle
 

Detailed Description

Describes the setup of a channel.

Field Documentation

Ccmb_desc channelSetup_struct::dataArea

This data area contains first the control blocks (in order), then the words to be copied to the set/clear registers of the gpio, set/clear words are alternated (eg: set0,clear0,set1,clear1,set2,clear2,...) So it can be divided in these memory regions: 0 - pulsesPerCycle*sizeof(ControlBlock)*3 : ControlBlocks pulsesPerCycle*sizeof(ControlBlock) - pulsesPerCycle*32*2 : Set/Clear words

set this field to zero when resetting the channel to mark it as not initialized

unsigned int channelSetup_struct::pulsesPerCycle

number of pulses in a period


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