* Update Spi component to return a status on device access
* Format LinuxSpiDriver files and update comments from TODO to DEPRECATED
* Add assertions to LinuxSpiDriver
* Add assertions to LinuxSpiDriver
---------
Co-authored-by: djbyrne <djbyrne@jpl.nasa.gov>
* Add SPI Mode Enum to LinuxSpiDriver
SPI Modes specify the clock polarity for each transaction. The default Fprime LinuxSpiDriver assumed SPI Mode 0. This should be generalized to account for SPI devices with different clock polarity and phases.
* Add default spiMode parameter value, assert check to ensure SPI Mode is in range
* Use switch statement to set SPI Mode when opening SPI Device
* Force-fail assert and print SPI Mode for invalid SPI modes
* Redefined SpiMode enum variables, added missing break statements
* Update SpiMode enum comments for each variable
Instead of adding the name argument to a constructor when FW_OBJECT_NAMES
is enabled, always supply a name argument.
Add a marco that conditionally sets the name to "" if FW_OBJECT_NAMES is not set.
This cleans up a lot of the conditional compilation switches that weren't being tested
and would silently break, while still stripping the strings from the binary.