Added one function to the API and wrote code for three other functions
in spi_2.c