CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/cache/sources/wl/include/bcmspi.h
Views: 3959
1
/*
2
* Broadcom SPI Low-Level Hardware Driver API
3
*
4
* $ Copyright Open Broadcom Corporation $
5
*
6
* $Id: bcmspi.h 241182 2011-02-17 21:50:03Z $
7
*/
8
#ifndef _BCM_SPI_H
9
#define _BCM_SPI_H
10
11
extern void spi_devintr_off(sdioh_info_t *sd);
12
extern void spi_devintr_on(sdioh_info_t *sd);
13
extern bool spi_start_clock(sdioh_info_t *sd, uint16 new_sd_divisor);
14
extern bool spi_controller_highspeed_mode(sdioh_info_t *sd, bool hsmode);
15
extern bool spi_check_client_intr(sdioh_info_t *sd, int *is_dev_intr);
16
extern bool spi_hw_attach(sdioh_info_t *sd);
17
extern bool spi_hw_detach(sdioh_info_t *sd);
18
extern void spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen);
19
extern void spi_spinbits(sdioh_info_t *sd);
20
extern void spi_waitbits(sdioh_info_t *sd, bool yield);
21
22
#endif /* _BCM_SPI_H */
23
24