Go to the documentation of this file.
34 #ifndef SRC_LTC4332_SPI_H_
35 #define SRC_LTC4332_SPI_H_
66 uint16_t bytes_number);
int32_t no_os_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: no_os_spi.c:159
Header file of SPI Interface.
int32_t ltc4332_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by ltc4332_spi_init().
Definition: ltc4332.c:88
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
int32_t ltc4332_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI ltc4332 layer.
Definition: ltc4332.c:63
const struct no_os_spi_platform_ops * platform_ops
Definition: no_os_spi.h:154
int32_t ltc4332_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI ltc4332 layer.
Definition: ltc4332.c:105
const struct no_os_spi_platform_ops ltc4332_spi_platform_ops
LTC4332 specific SPI platform ops structure.
Definition: ltc4332.c:51
struct no_os_spi_desc * parent
Definition: no_os_spi.h:214
struct no_os_spi_desc * parent
Definition: no_os_spi.h:160
int32_t ltc4332_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI ltc4332 layer.
Definition: ltc4332.c:63
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
Header file of SPI ltc4332 Interface.
void * extra
Definition: no_os_spi.h:212
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
int32_t ltc4332_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by ltc4332_spi_init().
Definition: ltc4332.c:88
const struct no_os_spi_platform_ops * platform_ops
Definition: no_os_spi.h:208
int32_t ltc4332_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI ltc4332 layer.
Definition: ltc4332.c:105
int32_t no_os_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: no_os_spi.c:52
const struct no_os_spi_platform_ops ltc4332_spi_platform_ops
LTC4332 specific SPI platform ops structure.
Definition: ltc4332.c:51
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140