/* * structure to contain st95hf spi communication specific information. * @req_issync: true for synchronous calls. * @spidev: st95hf spi device object. * @done: completion structure to wait for st95hf response * for synchronous calls. * @spi_lock: mutex to allow only one spi transfer at a time.
*/ struct st95hf_spi_context { bool req_issync; struct spi_device *spidev; struct completion done; struct mutex spi_lock;
};
/* flag to differentiate synchronous & asynchronous spi request */ enum req_type {
SYNC,
ASYNC,
};
int st95hf_spi_send(struct st95hf_spi_context *spicontext, unsignedchar *buffertx, int datalen, enum req_type reqtype);
int st95hf_spi_recv_response(struct st95hf_spi_context *spicontext, unsignedchar *receivebuff);
int st95hf_spi_recv_echo_res(struct st95hf_spi_context *spicontext, unsignedchar *receivebuff);
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.