Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

f_write for integers or wchar_t on stm32

$
0
0
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

Viewing all articles
Browse latest Browse all 4924

Trending Articles