1 #ifndef _TEST_SPIMASTER_H
2 #define _TEST_SPIMASTER_H
5 void SpiMasterInit_idles_SlaveSelect_high(
void);
6 void SpiMasterInit_makes_SlaveSelect_an_output(
void);
7 void SpiMasterInit_makes_Miso_an_input(
void);
8 void SpiMasterInit_enables_pullup_on_Miso(
void);
9 void SpiMasterInit_makes_DataReady_an_input(
void);
10 void SpiMasterInit_enables_pullup_on_DataReady(
void);
11 void SpiMasterInit_makes_Mosi_an_output(
void);
12 void SpiMasterInit_makes_Sck_an_output(
void);
13 void SpiMasterInit_makes_this_MCU_the_SPI_Master(
void);
14 void SpiMasterInit_sets_SPI_Clock_to_10MHz_ext_osc_divided_by_8(
void);
15 void SpiMasterInit_enables_the_SPI_hardware_module(
void);
16 void SpiMasterInit_clears_SPI_interrupt_flag(
void);
18 void SpiMasterXfrByte_selects_the_SPI_slave(
void);
19 void SpiMasterXfrByte_loads_SPI_data_reg_with_the_byte_to_send(
void);
20 void SpiMasterXfrByte_waits_until_the_transfer_is_done_by_reading_the_SPI_Interrupt_Flag(
void);
21 void SpiMasterXfrByte_unselects_the_SPI_slave(
void);
22 void SpiMasterXfrByte_clears_the_SPI_Interrupt_Flag_by_reading_the_SPI_data_reg(
void);
23 void SpiMasterXfrByte_returns_the_byte_in_the_SPI_data_reg(
void);