Subversion Repositories Code-Repo

Rev

Rev 199 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 199 Rev 201
Line 13... Line 13...
13
#ifndef SPI1_WRITE_ONLY
13
#ifndef SPI1_WRITE_ONLY
14
    char inBuffer[SPI1_BUFFER_SIZE];
14
    char inBuffer[SPI1_BUFFER_SIZE];
15
    int inBufferInd;
15
    int inBufferInd;
16
    int inBufferLen;
16
    int inBufferLen;
17
#endif
17
#endif
-
 
18
    void (*callback_function)(void);
18
} SPI1_DATA;
19
} SPI1_DATA;
19
 
20
 
20
void SPI1_Init(SPI1_DATA *data);
21
void SPI1_Init(SPI1_DATA *data);
21
// Note: SPI1_Write() writes MSB -> LSB!
22
// Note: SPI1_Write() writes MSB -> LSB!
22
int SPI1_Write(unsigned char *array, unsigned int count, void (*callback)(void));
23
int SPI1_Write(unsigned char *array, unsigned int count, void (*callback)(void));