Функции | |
void | init () |
void | writeReg (char addr, char value) |
void | writeBurstReg (char addr, char *buffer, char count) |
char | readReg (char addr) |
void | readBurstReg (char addr, char *buffer, char count) |
char | readStatus (char addr) |
void | strobe (char strobe_) |
void rfcc::rfspi::init | ( | ) |
Configures the assigned interface to function as a SPI port and initializes it.
См. определение в файле rfcc.cpp строка 109
Перекрестные ссылки spi::init().
void rfcc::rfspi::readBurstReg | ( | char | addr, | |
char * | buffer, | |||
char | count | |||
) |
Reads multiple configuration registers, the first register being at address "addr". Values read are deposited sequentially starting at address "buffer", until "count" registers have been read.
addr | first register address | |
*buffer | ptr to array of bytes | |
count | array length |
См. определение в файле rfcc.cpp строка 147
Перекрестные ссылки RFCC_READ_BURST, RFCC_WAIT_READY, SPI_CS_DISABLE, SPI_CS_ENABLE и spi::transfer().
Используется в rfcc::receivePacket().
char rfcc::rfspi::readReg | ( | char | addr | ) |
Reads a single configuration register at address "addr" and returns the value read.
addr | register address |
См. определение в файле rfcc.cpp строка 135
Перекрестные ссылки RFCC_READ_SINGLE, RFCC_WAIT_READY, SPI_CS_DISABLE, SPI_CS_ENABLE и spi::transfer().
Используется в rfcc::receivePacket().
char rfcc::rfspi::readStatus | ( | char | addr | ) |
Special read function for reading status registers. Reads status register at register "addr" and returns the value read.
addr | status register address |
См. определение в файле rfcc.cpp строка 159
Перекрестные ссылки RFCC_READ_BURST, RFCC_WAIT_READY, SPI_CS_DISABLE, SPI_CS_ENABLE и spi::transfer().
Используется в rfcc::receivePacket().
void rfcc::rfspi::strobe | ( | char | strobe_ | ) |
Special write function for writing to command strobe registers. Writes to the strobe at address "addr".
strobe_ | "addr" |
См. определение в файле rfcc.cpp строка 171
Перекрестные ссылки RFCC_WAIT_READY, SPI_CS_DISABLE, SPI_CS_ENABLE и spi::transfer().
Используется в rfcc::receivePacket() и rfcc::sendPacket().
void rfcc::rfspi::writeBurstReg | ( | char | addr, | |
char * | buffer, | |||
char | count | |||
) |
Writes values to multiple configuration registers, the first register being at address "addr". First data byte is at "buffer", and both addr and buffer are incremented sequentially (within the CCxxxx and AVR, respectively) until "count" writes have been performed.
addr | first register address | |
*buffer | ptr to array of bytes | |
count | array length |
См. определение в файле rfcc.cpp строка 123
Перекрестные ссылки RFCC_WAIT_READY, RFCC_WRITE_BURST, SPI_CS_DISABLE, SPI_CS_ENABLE и spi::transfer().
Используется в rfcc::sendPacket().
void rfcc::rfspi::writeReg | ( | char | addr, | |
char | value | |||
) |
Writes "value" to a single configuration register at address "addr".
addr | register address | |
value | new register value |
См. определение в файле rfcc.cpp строка 114
Перекрестные ссылки RFCC_WAIT_READY, SPI_CS_DISABLE, SPI_CS_ENABLE и spi::transfer().
Используется в rfcc::init().