|
SRA Board Components
ESP-IDF component for SRA Board
|
#include "shift_register.h"
Functions | |
| esp_err_t | shift_register_gpio_init (shift_register_t *conf) |
| Initialises the GPIO Pins for the Shift Register Present on the SRA Board. More... | |
| esp_err_t | shift_register_write_uint8 (const shift_register_t *sreg, const uint8_t data, const bool instant) |
| Writes a single byte to the shift register and latches it (single shift register) More... | |
| esp_err_t | shift_register_write_uint32 (const shift_register_t *sreg, const uint32_t data, const bool instant) |
| Writes a four bytes to the shift register and latches it (four cascaded shift registers) More... | |
| esp_err_t | shift_register_cleanup (shift_register_t sreg) |
| Performs cleanup on the shift register contents. More... | |
| esp_err_t shift_register_cleanup | ( | shift_register_t | sreg | ) |
Performs cleanup on the shift register contents.
| sreg | The handle to use and represent the shift register |
| esp_err_t shift_register_gpio_init | ( | shift_register_t * | conf | ) |
Initialises the GPIO Pins for the Shift Register Present on the SRA Board.
| conf | The handle to use and represent the shift registers. |
| esp_err_t shift_register_write_uint32 | ( | const shift_register_t * | sreg, |
| const uint32_t | data, | ||
| const bool | instant | ||
| ) |
Writes a four bytes to the shift register and latches it (four cascaded shift registers)
| sreg | The handle to use and represent the shift registers. |
| data | The data to be sent to the shift register. |
| instant | This parameter defines the way in which the data is latched to the output register, all 8 bits at once or one-by-one. |
| esp_err_t shift_register_write_uint8 | ( | const shift_register_t * | sreg, |
| const uint8_t | data, | ||
| const bool | instant | ||
| ) |
Writes a single byte to the shift register and latches it (single shift register)
| sreg | The handle to use and represent the shift registers. |
| data | The data to be sent to the shift register. |
| instant | This parameter defines the way in which the data is latched to the output register, all 8 bits at once or one-by-one. |