You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
546 B
28 lines
546 B
/*
|
|
* Copyright (c) 2022, Erich Styger
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef MCUSPI_H_
|
|
#define MCUSPI_H_
|
|
|
|
#include "McuSPIconfig.h"
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
void McuSPI_SetCS_Low(void);
|
|
|
|
void McuSPI_SetCS_High(void);
|
|
|
|
int McuSPI_SendReceiveBlock(const uint8_t *txDataBuf, uint8_t *rxDataBuf, size_t dataSize);
|
|
|
|
int McuSPI_SendByte(unsigned char ch);
|
|
|
|
int McuSPI_SendReceiveByte(unsigned char ch, unsigned char *chp);
|
|
|
|
int McuSPI_ReceiveByte(unsigned char *chp);
|
|
|
|
void McuSPI_Init(void);
|
|
|
|
#endif /* MCUSPI_H_ */
|
|
|