Documentation
¶
Overview ¶
Package ppi provides interface to Programmable Peripheral Interconnect (PPI).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableIRQ ¶
func IRQEnabled ¶
Types ¶
type Chan ¶
type Chan byte
Chan represents PPI channel. There are 31 channels numbered from 0 to 31. Channels from 20 to 31 are pre-programmed.
const ( TIMER0_COMPARE0__RADIO_TXEN Chan = 20 TIMER0_COMPARE0__RADIO_RXEN Chan = 21 TIMER0_COMPARE1__RADIO_DISABLE Chan = 22 RADIO_BCMATCH__AAR_START Chan = 23 RADIO_READY__CCM_KSGEN Chan = 24 RADIO_ADDRESS__CCM_CRYPT Chan = 25 RADIO_ADDRESS__TIMER0_CAPTURE1 Chan = 26 RADIO_END__TIMER0_CAPTURE2 Chan = 27 RTC0_COMPARE0__RADIO_TXEN Chan = 28 RTC0_COMPARE0__RADIO_RXEN Chan = 29 RTC0_COMPARE0__TIMER0_CLEAR Chan = 30 RTC0_COMPARE0__TIMER0_START Chan = 31 )
Pre-programmed channels.
type Channels ¶
type Channels uint32
func Enabled ¶
func Enabled() Channels
Enabled returns a bitfield where each bit corresponds to one channel. Zero means channel is disabled, one means channel is enabled.
type Group ¶
type Group int8
Group repersents PPI channel group. There are 4 channel groups (6 in nRF52) numbered from 0 to 3 (5 in nRF52).
func (Group) SetChannels ¶
SetChannels sets channels that belongs to the group g.
Click to show internal directories.
Click to hide internal directories.