ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_io_stream_posix_internal.h
Go to the documentation of this file.
1
18
19#pragma once
20
21#ifndef RA8_OFF_TARGET
22#error "port/posix is host-only and must never be compiled or linked into target firmware."
23#endif
24
25#include <stdint.h>
26
27#include "ra8_attributes.h"
28#include "ra8_err.h"
29
31typedef int64_t (*ra8_io_stream_posix_write_fn_t)(void* context,
32 int fd,
33 const uint8_t* bytes,
34 uint32_t length,
35 int* out_errno);
36
62 const uint8_t* bytes,
63 uint32_t length,
64 uint32_t* out_written,
66 void* writer_context);
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
ra8_err_t priv_ra8_io_stream_posix_write_loop(int fd, const uint8_t *bytes, uint32_t length, uint32_t *out_written, ra8_io_stream_posix_write_fn_t writer, void *writer_context)
Complete one descriptor write through an injected raw primitive.
int64_t(* ra8_io_stream_posix_write_fn_t)(void *context, int fd, const uint8_t *bytes, uint32_t length, int *out_errno)
Injected descriptor-write primitive used by the exact-write loop.