Skip to content

SpiDrv

詳細情報

メンバー

begin()

void SpiDrv::begin()

end()

void SpiDrv::end()

spiDriverInit()

static void SpiDrv::spiDriverInit()

spiSlaveSelect()

void SpiDrv::spiSlaveSelect()

spiSlaveDeselect()

void SpiDrv::spiSlaveDeselect()

spiTransfer()

char SpiDrv::spiTransfer(volatile char data)

引数

  • volatilechar data

戻り値

char

waitForSlaveReady()

void SpiDrv::waitForSlaveReady()

waitSpiChar()

int SpiDrv::waitSpiChar(unsigned char waitChar)

引数

  • unsigned char waitChar

戻り値

int

readAndCheckChar()

int SpiDrv::readAndCheckChar(char checkChar, char *readChar)

引数

  • char checkChar
  • char * readChar

戻り値

int

readChar()

char SpiDrv::readChar()

戻り値

char

waitResponseParams()

int SpiDrv::waitResponseParams(uint8_t cmd, uint8_t numParam, tParam *params)

引数

  • uint8_t cmd
  • uint8_t numParam
  • tParam* params

戻り値

int

waitResponseCmd()

int SpiDrv::waitResponseCmd(uint8_t cmd, uint8_t numParam, uint8_t *param, uint8_t *param_len)

引数

  • uint8_t cmd
  • uint8_t numParam
  • uint8_t * param
  • uint8_t * param_len

戻り値

int

waitResponseData8()

int SpiDrv::waitResponseData8(uint8_t cmd, uint8_t *param, uint8_t *param_len)

引数

  • uint8_t cmd
  • uint8_t * param
  • uint8_t * param_len

戻り値

int

waitResponseData16()

int SpiDrv::waitResponseData16(uint8_t cmd, uint8_t *param, uint16_t *param_len)

引数

  • uint8_t cmd
  • uint8_t * param
  • uint16_t * param_len

戻り値

int

waitResponse()

int SpiDrv::waitResponse(uint8_t cmd, uint8_t *numParamRead, uint8_t **params, uint8_t maxNumParams)

引数

  • uint8_t cmd
  • uint8_t * numParamRead
  • uint8_t ** params
  • uint8_t maxNumParams

戻り値

int

sendParam()

void SpiDrv::sendParam(uint8_t *param, uint8_t param_len, uint8_t lastParam=NO_LAST_PARAM)

引数

  • uint8_t * param
  • uint8_t param_len
  • uint8_t lastParam

sendParamLen8()

void SpiDrv::sendParamLen8(uint8_t param_len)

引数

  • uint8_t param_len

sendParamLen16()

void SpiDrv::sendParamLen16(uint16_t param_len)

引数

  • uint16_t param_len

readParamLen8()

uint8_t SpiDrv::readParamLen8(uint8_t *param_len=NULL)

引数

  • uint8_t * param_len

戻り値

uint8_t

readParamLen16()

uint16_t SpiDrv::readParamLen16(uint16_t *param_len=NULL)

引数

  • uint16_t * param_len

戻り値

uint16_t

sendBuffer()

void SpiDrv::sendBuffer(uint8_t *param, uint16_t param_len, uint8_t lastParam=NO_LAST_PARAM)

引数

  • uint8_t * param
  • uint16_t param_len
  • uint8_t lastParam

sendParam()

void SpiDrv::sendParam(uint16_t param, uint8_t lastParam=NO_LAST_PARAM)

引数

  • uint16_t param
  • uint8_t lastParam

sendCmd()

void SpiDrv::sendCmd(uint8_t cmd, uint8_t numParam)

引数

  • uint8_t cmd
  • uint8_t numParam