Hey everyone,
I have the following function, part of elm-chan's FATFS library:
FRESULT f_write (
FIL* fp, /* Pointer to the file object */
const void* buff, /* Pointer to the data to be written */
UINT btw, /* Number of bytes to write */
UINT* bw /* Pointer to number of bytes written */
)
Problem is that to get readable data I need to make sure the data I'm passing to const void* buff is a character,...
f_write for integers or wchar_t on stm32
I have the following function, part of elm-chan's FATFS library:
FRESULT f_write (
FIL* fp, /* Pointer to the file object */
const void* buff, /* Pointer to the data to be written */
UINT btw, /* Number of bytes to write */
UINT* bw /* Pointer to number of bytes written */
)
Problem is that to get readable data I need to make sure the data I'm passing to const void* buff is a character,...
f_write for integers or wchar_t on stm32