37 const unsigned int FREQUENCY = 900000;
43 PropWare::SPI::MSB_FIRST);
49 if (NULL != testable) {
55 TEST(ShiftOut_MsbFirst) {
65 TEST(ShiftOut_LsbFirst) {
78 const int BUFFER_SIZE = 16;
81 uint8_t buffer[BUFFER_SIZE];
82 for (uint8_t i = 0; i < BUFFER_SIZE; ++i)
92 START(SPITest_MUST_USE_LOGIC_ANALYZER);
94 RUN_TEST(ShiftOut_MsbFirst);
95 RUN_TEST(ShiftOut_LsbFirst);
96 RUN_TEST(ShiftOutBlock);
Utility class to handle general purpose I/O pins.
void shift_out_block_msb_first_fast(const uint8_t buffer[], size_t numberOfBytes)
Receive an array of data at max transmit speed. Mode is always MODE_0 and data is always MSB first...
void shift_out(uint8_t bits, uint32_t value) const
Send a value out to a peripheral device.
void set_bit_mode(const BitMode bitmode)
Set the bitmode of SPI communication.
const PropWare::Port::Mask CS
SPI serial communications library; Core functionality comes from a dedicated assembly cog...