Home
last modified time | relevance | path

Searched refs:handle_t (Results 1 – 9 of 9) sorted by relevance

/device/google/contexthub/util/stm32_flash/
Dspi.h24 handle_t handle;
28 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length);
29 uint8_t spi_write_cmd(handle_t *handle, uint8_t cmd);
30 uint8_t spi_read_data(handle_t *handle, uint8_t *data, int length);
31 uint8_t spi_read_ack(handle_t *handle);
32 int spi_init(handle_t *handle);
Duart.h24 handle_t handle;
29 uint8_t uart_write_data(handle_t *handle, uint8_t *buffer, int length);
30 uint8_t uart_write_cmd(handle_t *handle, uint8_t cmd);
31 uint8_t uart_read_data(handle_t *handle, uint8_t *data, int length);
32 uint8_t uart_read_ack(handle_t *handle);
33 int uart_init(handle_t *handle);
Di2c.h24 handle_t handle;
29 uint8_t i2c_write_data(handle_t *handle, uint8_t *buffer, int length);
30 uint8_t i2c_write_cmd(handle_t *handle, uint8_t cmd);
31 uint8_t i2c_read_data(handle_t *handle, uint8_t *data, int length);
32 uint8_t i2c_read_ack(handle_t *handle);
33 int i2c_init(handle_t *handle);
Dstm32_bl.c26 uint8_t checksum(__attribute__((unused)) handle_t *handle, uint8_t *bytes, int length) in checksum()
43 static uint8_t write_len(handle_t *handle, int len) in write_len()
52 static uint8_t write_cnt(handle_t *handle, uint16_t cnt) in write_cnt()
62 static uint8_t write_addr(handle_t *handle, uint32_t addr) in write_addr()
75 static uint8_t write_len_data(handle_t *handle, int len, uint8_t *data) in write_len_data()
89 static uint8_t read_ack_loop(handle_t *handle) in read_ack_loop()
101 uint8_t erase_sector(handle_t *handle, uint16_t sector) in erase_sector()
134 uint8_t read_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer) in read_memory()
169 uint8_t write_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer) in write_memory()
Dstm32_bl.h42 } handle_t; typedef
44 uint8_t checksum(handle_t *handle, uint8_t *bytes, int length);
45 uint8_t erase_sector(handle_t *handle, uint16_t sector);
46 uint8_t read_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer);
47 uint8_t write_memory(handle_t *handle, uint32_t addr, uint32_t length, uint8_t *buffer);
Di2c.c26 uint8_t i2c_write_data(handle_t *handle, uint8_t *buffer, int length) in i2c_write_data()
38 uint8_t i2c_write_cmd(handle_t *handle, uint8_t cmd) in i2c_write_cmd()
48 uint8_t i2c_read_data(handle_t *handle, uint8_t *data, int length) in i2c_read_data()
58 uint8_t i2c_read_ack(handle_t *handle) in i2c_read_ack()
68 int i2c_init(handle_t *handle) in i2c_init()
Dspi.c24 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length) in spi_write_data()
43 uint8_t spi_write_cmd(handle_t *handle, uint8_t cmd) in spi_write_cmd()
66 uint8_t spi_read_data(handle_t *handle, uint8_t *data, int length) in spi_read_data()
94 uint8_t spi_read_ack(handle_t *handle) in spi_read_ack()
129 uint8_t spi_sync(handle_t *handle) in spi_sync()
150 int spi_init(handle_t *handle) in spi_init()
Duart.c29 uint8_t uart_write_data(handle_t *handle, uint8_t *buffer, int length) in uart_write_data()
41 uint8_t uart_write_cmd(handle_t *handle, uint8_t cmd) in uart_write_cmd()
56 uint8_t uart_read_data(handle_t *handle, uint8_t *data, int length) in uart_read_data()
72 uint8_t uart_read_ack(handle_t *handle) in uart_read_ack()
82 int uart_init(handle_t *handle) in uart_init()
Dflash.c76 handle_t *handle; in main()