Fixes.

Added error codes.
Fixed SPI handling for set_tx_address, set_rx_address, rx_flush and tx_flush.