Changeset 364 for asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/hal/spi_api.h
- Timestamp:
- Feb 1, 2019, 9:57:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/hal/spi_api.h
r352 r364 116 116 */ 117 117 int spi_master_write(spi_t *obj, int value); 118 119 /** Write a block out in master mode and receive a value 120 * 121 * The total number of bytes sent and received will be the maximum of 122 * tx_length and rx_length. The bytes written will be padded with the 123 * value 0xff. 124 * 125 * @param[in] obj The SPI peripheral to use for sending 126 * @param[in] tx_buffer Pointer to the byte-array of data to write to the device 127 * @param[in] tx_length Number of bytes to write, may be zero 128 * @param[in] rx_buffer Pointer to the byte-array of data to read from the device 129 * @param[in] rx_length Number of bytes to read, may be zero 130 * @param[in] write_fill Default data transmitted while performing a read 131 * @returns 132 * The number of bytes written and read from the device. This is 133 * maximum of tx_length and rx_length. 134 */ 135 int spi_master_block_write(spi_t *obj, const char *tx_buffer, int tx_length, char *rx_buffer, int rx_length, char write_fill); 118 136 119 137 /** Check if a value is available to read
Note:
See TracChangeset
for help on using the changeset viewer.