![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
Functions | |
| enum sd_buff_err | sd_char_buff_init (struct sd_cbuf *buff, uint32_t size, uint8_t *pbuff) |
| Initialize Character Buffer. More... | |
| enum sd_buff_err | sd_doub_buff_init (struct sd_doub_buff *buff, uint32_t size, uint8_t **pbuff) |
| Initialize Double Buffer. More... | |
| enum sd_buff_err | sd_char_buff_putc (struct sd_cbuf *buffer, uint8_t data) |
| Put Character in Buffer Write a character to the buffer. More... | |
| enum sd_buff_err | sd_char_buff_putc_to (struct sd_cbuf *buffer, uint8_t data, uint32_t timeout) |
| Put Character in Buffer with Timeout Write a character to the buffer with a timeout. More... | |
| enum sd_buff_err | sd_char_buff_write (struct sd_cbuf *buffer, uint8_t *data, uint32_t len) |
| Write Data to Buffer Write a specified length of characters from a data pointer to the buffer. More... | |
| enum sd_buff_err | sd_char_buff_read (struct sd_cbuf *buff, uint8_t *data, uint32_t *len) |
| Read Length of Characters from Buffer Copy a specified length of the buffer to a pointer. More... | |
| enum sd_buff_err | sd_char_buff_getc (struct sd_cbuf *buff, uint8_t *data) |
| Get Character from Buffer Get a single character from the buffer. More... | |
| enum sd_buff_err | sd_char_buff_getc_to (struct sd_cbuf *buff, uint8_t *data, uint32_t timeout) |
| Get Character from Buffer with Timeout Get a single character from the buffer with a timeout if the buffer is locked. More... | |
| enum sd_buff_err | sd_buff_reset (struct sd_cbuf *buff) |
| Reset buffer Resets the in and out indexes of the buffer (without removing contents of the buffer) to the start of the buffer. More... | |
| __weak void | sd_char_write_end_cb (struct sd_cbuf *buff) |
| Write Command End Callback User defined function executed when a write operation is completed. More... | |
| __weak void | sd_char_read_end_cb (struct sd_cbuf *buff) |
| Read Command End Callback User defined function executed when a read operation is completed. More... | |
| enum sd_buff_err | sd_doub_buff_init (struct sd_doub_buff *buff, uint32_t size, uint8_t *pbuff[]) |
| enum sd_buff_err sd_buff_reset | ( | struct sd_cbuf * | buff | ) |
#include <Src/sd_buffer.c>
Reset buffer Resets the in and out indexes of the buffer (without removing contents of the buffer) to the start of the buffer.
| buff | The buffer to reset |
| SD_BUFF_SUCCESS | on success, error state otherwise |
| enum sd_buff_err sd_char_buff_getc | ( | struct sd_cbuf * | buff, |
| uint8_t * | data | ||
| ) |
#include <Src/sd_buffer.c>
Get Character from Buffer Get a single character from the buffer.
| buff | The buffer to read from |
| data | Pointer to character to write to |
| SD_BUFF_SUCCESS | on success, error status otherwise |
| enum sd_buff_err sd_char_buff_getc_to | ( | struct sd_cbuf * | buff, |
| uint8_t * | data, | ||
| uint32_t | timeout | ||
| ) |
#include <Src/sd_buffer.c>
Get Character from Buffer with Timeout Get a single character from the buffer with a timeout if the buffer is locked.
| buff | The buffer to read from |
| data | Pointer to character to write to |
| timeout | Timeout value to use for read |
| SD_BUFF_SUCCESS | on success, error status otherwise |
| enum sd_buff_err sd_char_buff_init | ( | struct sd_cbuf * | buff, |
| uint32_t | size, | ||
| uint8_t * | pbuff | ||
| ) |
#include <Src/sd_buffer.c>
Initialize Character Buffer.
| buffer | The buffer to initialize |
| size | The length of the buffer |
| pbuff | Pointer to location of character array to hold buffer data |
| SD_BUFF_SUCCESS | on success, error status otherwise |
| enum sd_buff_err sd_char_buff_putc | ( | struct sd_cbuf * | buffer, |
| uint8_t | data | ||
| ) |
#include <Src/sd_buffer.c>
Put Character in Buffer Write a character to the buffer.
| buffer | The buffer to write to |
| data | The character to write |
| SD_BUFF_SUCCESS | on success, error status otherwise |
| enum sd_buff_err sd_char_buff_putc_to | ( | struct sd_cbuf * | buffer, |
| uint8_t | data, | ||
| uint32_t | timeout | ||
| ) |
#include <Src/sd_buffer.c>
Put Character in Buffer with Timeout Write a character to the buffer with a timeout.
| buffer | The buffer to write to |
| data | The character to write |
| timeout | The timeout used to write the character |
| SD_BUFF_SUCCESS | on success, error status otherwise |
| enum sd_buff_err sd_char_buff_read | ( | struct sd_cbuf * | buff, |
| uint8_t * | data, | ||
| uint32_t * | len | ||
| ) |
#include <Src/sd_buffer.c>
Read Length of Characters from Buffer Copy a specified length of the buffer to a pointer.
| buff | The buffer to read from |
| data | The data pointer to write the buffer to |
| len | The length of the buffer to read |
| SD_BUFF_SUCCESS | on success, error status otherwise |
| enum sd_buff_err sd_char_buff_write | ( | struct sd_cbuf * | buffer, |
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
#include <Src/sd_buffer.c>
Write Data to Buffer Write a specified length of characters from a data pointer to the buffer.
| buffer | The buffer to write to |
| data | The data pointer to data to write to buffer |
| len | The length of the buffer to write |
| SD_BUFF_SUCCESS | on success, error status otherwise |
| void sd_char_read_end_cb | ( | struct sd_cbuf * | buff | ) |
#include <Src/sd_buffer.c>
Read Command End Callback User defined function executed when a read operation is completed.
| buff | The buffer that was read |
| none |
| void sd_char_write_end_cb | ( | struct sd_cbuf * | buff | ) |
#include <Src/sd_buffer.c>
Write Command End Callback User defined function executed when a write operation is completed.
| buff | The buffer that was written |
| None |
| enum sd_buff_err sd_doub_buff_init | ( | struct sd_doub_buff * | buff, |
| uint32_t | size, | ||
| uint8_t ** | pbuff | ||
| ) |
#include <Src/sd_buffer.c>
Initialize Double Buffer.
| buff | The buffer to initialize |
| size | Length of the buffer |
| pbuff | Pointer to buffer array |
| SD_BUFF_SUCCESS | on success, error status otherwise |