nn::hio::CTR::SerialChannel::Read Member Function#include <nn/hio.h>
s32 Read(
void * buf,
size_t size,
bit32 attr = ATTRIBUTE_NONE
);
| Name | Description | |
|---|---|---|
| out | buf | Buffer where the received data is stored. |
| in | size | Maximum size of the data to receive. |
| in | attr | Reception attribute. If set to ATTRIBUTE_NONE, the function blocks until either size bytes can be received or the channel is closed.If set to ATTRIBUTE_NO_WAIT, the function returns as soon as there is no more data to receive. |
-1. Receives data from the host.
CONFIDENTIAL