MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / spi_write_32

Method spi_write_32

Software/C/GoPiGo3.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87int GoPiGo3::spi_write_32(uint8_t msg_type, uint32_t value){
88 spi_array_out[0] = Address;
89 spi_array_out[1] = msg_type;
90 spi_array_out[2] = ((value >> 24) & 0xFF);
91 spi_array_out[3] = ((value >> 16) & 0xFF);
92 spi_array_out[4] = ((value >> 8) & 0xFF);
93 spi_array_out[5] = (value & 0xFF);
94 return spi_transfer_array(6, spi_array_out, spi_array_in);
95}
96
97int GoPiGo3::detect(bool critical){
98 char ErrorStr[100];

Callers

nothing calls this directly

Calls 1

spi_transfer_arrayFunction · 0.85

Tested by

no test coverage detected