Fonctions membres publiques | Liste de tous les membres
Référence de la classe SERCOM

#include <SERCOM.h>

Fonctions membres publiques

 SERCOM (Sercom *s)
 
void initUART (SercomUartMode mode, SercomUartSampleRate sampleRate, uint32_t baudrate=0)
 
void initFrame (SercomUartCharSize charSize, SercomDataOrder dataOrder, SercomParityMode parityMode, SercomNumberStopBit nbStopBits)
 
void initPads (SercomUartTXPad txPad, SercomRXPad rxPad)
 
void resetUART (void)
 
void enableUART (void)
 
void flushUART (void)
 
void clearStatusUART (void)
 
bool availableDataUART (void)
 
bool isBufferOverflowErrorUART (void)
 
bool isFrameErrorUART (void)
 
void clearFrameErrorUART (void)
 
bool isParityErrorUART (void)
 
bool isDataRegisterEmptyUART (void)
 
uint8_t readDataUART (void)
 
int writeDataUART (uint8_t data)
 
bool isUARTError ()
 
void acknowledgeUARTError ()
 
void enableDataRegisterEmptyInterruptUART ()
 
void disableDataRegisterEmptyInterruptUART ()
 
void initSPI (SercomSpiTXPad mosi, SercomRXPad miso, SercomSpiCharSize charSize, SercomDataOrder dataOrder)
 
void initSPIClock (SercomSpiClockMode clockMode, uint32_t baudrate)
 
void resetSPI (void)
 
void enableSPI (void)
 
void disableSPI (void)
 
void setDataOrderSPI (SercomDataOrder dataOrder)
 
SercomDataOrder getDataOrderSPI (void)
 
void setBaudrateSPI (uint8_t divider)
 
void setClockModeSPI (SercomSpiClockMode clockMode)
 
uint8_t transferDataSPI (uint8_t data)
 
bool isBufferOverflowErrorSPI (void)
 
bool isDataRegisterEmptySPI (void)
 
bool isTransmitCompleteSPI (void)
 
bool isReceiveCompleteSPI (void)
 
void initSlaveWIRE (uint8_t address, bool enableGeneralCall=false)
 
void initMasterWIRE (uint32_t baudrate)
 
void resetWIRE (void)
 
void enableWIRE (void)
 
void disableWIRE (void)
 
void prepareNackBitWIRE (void)
 
void prepareAckBitWIRE (void)
 
void prepareCommandBitsWire (uint8_t cmd)
 
bool startTransmissionWIRE (uint8_t address, SercomWireReadWriteFlag flag)
 
bool sendDataMasterWIRE (uint8_t data)
 
bool sendDataSlaveWIRE (uint8_t data)
 
bool isMasterWIRE (void)
 
bool isSlaveWIRE (void)
 
bool isBusIdleWIRE (void)
 
bool isBusOwnerWIRE (void)
 
bool isArbLostWIRE (void)
 
bool isBusBusyWIRE (void)
 
bool isDataReadyWIRE (void)
 
bool isStopDetectedWIRE (void)
 
bool isRestartDetectedWIRE (void)
 
bool isAddressMatch (void)
 
bool isMasterReadOperationWIRE (void)
 
bool isRXNackReceivedWIRE (void)
 
int availableWIRE (void)
 
uint8_t readDataWIRE (void)
 

Documentation des constructeurs et destructeur

◆ SERCOM()

SERCOM::SERCOM ( Sercom *  s)

Documentation des fonctions membres

◆ acknowledgeUARTError()

void SERCOM::acknowledgeUARTError ( )

◆ availableDataUART()

bool SERCOM::availableDataUART ( void  )

◆ availableWIRE()

int SERCOM::availableWIRE ( void  )

◆ clearFrameErrorUART()

void SERCOM::clearFrameErrorUART ( void  )

◆ clearStatusUART()

void SERCOM::clearStatusUART ( void  )

◆ disableDataRegisterEmptyInterruptUART()

void SERCOM::disableDataRegisterEmptyInterruptUART ( )

◆ disableSPI()

void SERCOM::disableSPI ( void  )

◆ disableWIRE()

void SERCOM::disableWIRE ( void  )

◆ enableDataRegisterEmptyInterruptUART()

void SERCOM::enableDataRegisterEmptyInterruptUART ( )

◆ enableSPI()

void SERCOM::enableSPI ( void  )

◆ enableUART()

void SERCOM::enableUART ( void  )

◆ enableWIRE()

void SERCOM::enableWIRE ( void  )

◆ flushUART()

void SERCOM::flushUART ( void  )

◆ getDataOrderSPI()

SercomDataOrder SERCOM::getDataOrderSPI ( void  )

◆ initFrame()

void SERCOM::initFrame ( SercomUartCharSize  charSize,
SercomDataOrder  dataOrder,
SercomParityMode  parityMode,
SercomNumberStopBit  nbStopBits 
)

◆ initMasterWIRE()

void SERCOM::initMasterWIRE ( uint32_t  baudrate)

◆ initPads()

void SERCOM::initPads ( SercomUartTXPad  txPad,
SercomRXPad  rxPad 
)

◆ initSlaveWIRE()

void SERCOM::initSlaveWIRE ( uint8_t  address,
bool  enableGeneralCall = false 
)

◆ initSPI()

void SERCOM::initSPI ( SercomSpiTXPad  mosi,
SercomRXPad  miso,
SercomSpiCharSize  charSize,
SercomDataOrder  dataOrder 
)

◆ initSPIClock()

void SERCOM::initSPIClock ( SercomSpiClockMode  clockMode,
uint32_t  baudrate 
)

◆ initUART()

void SERCOM::initUART ( SercomUartMode  mode,
SercomUartSampleRate  sampleRate,
uint32_t  baudrate = 0 
)

◆ isAddressMatch()

bool SERCOM::isAddressMatch ( void  )

◆ isArbLostWIRE()

bool SERCOM::isArbLostWIRE ( void  )

◆ isBufferOverflowErrorSPI()

bool SERCOM::isBufferOverflowErrorSPI ( void  )

◆ isBufferOverflowErrorUART()

bool SERCOM::isBufferOverflowErrorUART ( void  )

◆ isBusBusyWIRE()

bool SERCOM::isBusBusyWIRE ( void  )

◆ isBusIdleWIRE()

bool SERCOM::isBusIdleWIRE ( void  )

◆ isBusOwnerWIRE()

bool SERCOM::isBusOwnerWIRE ( void  )

◆ isDataReadyWIRE()

bool SERCOM::isDataReadyWIRE ( void  )

◆ isDataRegisterEmptySPI()

bool SERCOM::isDataRegisterEmptySPI ( void  )

◆ isDataRegisterEmptyUART()

bool SERCOM::isDataRegisterEmptyUART ( void  )

◆ isFrameErrorUART()

bool SERCOM::isFrameErrorUART ( void  )

◆ isMasterReadOperationWIRE()

bool SERCOM::isMasterReadOperationWIRE ( void  )

◆ isMasterWIRE()

bool SERCOM::isMasterWIRE ( void  )

◆ isParityErrorUART()

bool SERCOM::isParityErrorUART ( void  )

◆ isReceiveCompleteSPI()

bool SERCOM::isReceiveCompleteSPI ( void  )

◆ isRestartDetectedWIRE()

bool SERCOM::isRestartDetectedWIRE ( void  )

◆ isRXNackReceivedWIRE()

bool SERCOM::isRXNackReceivedWIRE ( void  )

◆ isSlaveWIRE()

bool SERCOM::isSlaveWIRE ( void  )

◆ isStopDetectedWIRE()

bool SERCOM::isStopDetectedWIRE ( void  )

◆ isTransmitCompleteSPI()

bool SERCOM::isTransmitCompleteSPI ( void  )

◆ isUARTError()

bool SERCOM::isUARTError ( )

◆ prepareAckBitWIRE()

void SERCOM::prepareAckBitWIRE ( void  )

◆ prepareCommandBitsWire()

void SERCOM::prepareCommandBitsWire ( uint8_t  cmd)

◆ prepareNackBitWIRE()

void SERCOM::prepareNackBitWIRE ( void  )

◆ readDataUART()

uint8_t SERCOM::readDataUART ( void  )

◆ readDataWIRE()

uint8_t SERCOM::readDataWIRE ( void  )

◆ resetSPI()

void SERCOM::resetSPI ( void  )

◆ resetUART()

void SERCOM::resetUART ( void  )

◆ resetWIRE()

void SERCOM::resetWIRE ( void  )

◆ sendDataMasterWIRE()

bool SERCOM::sendDataMasterWIRE ( uint8_t  data)

◆ sendDataSlaveWIRE()

bool SERCOM::sendDataSlaveWIRE ( uint8_t  data)

◆ setBaudrateSPI()

void SERCOM::setBaudrateSPI ( uint8_t  divider)

◆ setClockModeSPI()

void SERCOM::setClockModeSPI ( SercomSpiClockMode  clockMode)

◆ setDataOrderSPI()

void SERCOM::setDataOrderSPI ( SercomDataOrder  dataOrder)

◆ startTransmissionWIRE()

bool SERCOM::startTransmissionWIRE ( uint8_t  address,
SercomWireReadWriteFlag  flag 
)

◆ transferDataSPI()

uint8_t SERCOM::transferDataSPI ( uint8_t  data)

◆ writeDataUART()

int SERCOM::writeDataUART ( uint8_t  data)