RTEMS
5.0.0
|
#include "chip.h"
#include <assert.h>
Macros | |
#define | PIO_PCISR_RXBUFF (0x1u<<3) |
#define | PIO_PCISR_ENDRX (0x1u<<2) |
Functions | |
void | PIO_CaptureHandler (void) |
The PIO_CaptureHandler must be called by the PIO Capture Interrupt Service Routine with the corresponding PIO Capture instance. | |
void | PIO_CaptureDisableIt (uint32_t itToDisable) |
Disable Interrupt of the PIO Capture. More... | |
void | PIO_CaptureEnableIt (uint32_t itToEnable) |
Enable Interrupt of the PIO Capture. More... | |
void | PIO_CaptureEnable (void) |
Enable the PIO Capture. | |
void | PIO_CaptureDisable (void) |
Disable the PIO Capture. | |
void | PIO_CaptureInit (SpioCaptureInit *pInit) |
Initialize the PIO Capture. More... | |
Implementation of PIO Parallel Capture.
void PIO_CaptureDisableIt | ( | uint32_t | itToDisable | ) |
Disable Interrupt of the PIO Capture.
itToDisable | : Interrupt to disable |
void PIO_CaptureEnableIt | ( | uint32_t | itToEnable | ) |
Enable Interrupt of the PIO Capture.
itToEnable | : Interrupt to enable |
void PIO_CaptureInit | ( | SpioCaptureInit * | pInit | ) |
Initialize the PIO Capture.
dsize | : 0 = The reception data in the PIO_PCRHR register is a BYTE (8-bit). 1 = The reception data in the PIO_PCRHR register is a HALF-WORD (16-bit). 2/3 = The reception data in the PIO_PCRHR register is a WORD (32-bit). |
alwaysSampling | ALWYS: Parallel Capture Mode Always Sampling 0 = The parallel capture mode samples the data when both data enables are active. 1 = The parallel capture mode samples the data whatever the data enables are. |
halfSampling | HALFS: Parallel Capture Mode Half Sampling 0 = The parallel capture mode samples all the data. 1 = The parallel capture mode samples the data only one time out of two. |
modeFirstSample | FRSTS: Parallel Capture Mode First Sample This bit is useful only if the HALFS bit is set to 1. If data are numbered in the order that they are received with an index from 0 to n: 0 = Only data with an even index are sampled. 1 = Only data with an odd index are sampled. |