abla/unsafe/mmio

Generated from source.

Import with import "abla/unsafe/mmio".

Source: abla/unsafe/mmio/entry.ab

ablaUnsafeVolatileLoadU8 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileLoadU8(
    address: int
): int

Trusted volatile memory-mapped I/O. Platform frameworks own register maps and expose typed peripheral APIs; ordinary applications should not import this module directly.

ablaUnsafeVolatileLoadU16 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileLoadU16(
    address: int
): int

Loads a unsigned 16-bit value with a volatile read from a valid address of that width.

ablaUnsafeVolatileLoadU32 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileLoadU32(
    address: int
): int

Loads a unsigned 32-bit value with a volatile read from a valid address of that width.

ablaUnsafeVolatileLoadU64 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileLoadU64(
    address: int
): int

Loads a 64-bit bit pattern with a volatile read from a valid address of that width.

ablaUnsafeVolatileStoreU8 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileStoreU8(
    address: int,
    value: int
): void

Stores the low 8 bits with a volatile write to a valid address of that width.

ablaUnsafeVolatileStoreU16 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileStoreU16(
    address: int,
    value: int
): void

Stores the low 16 bits with a volatile write to a valid address of that width.

ablaUnsafeVolatileStoreU32 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileStoreU32(
    address: int,
    value: int
): void

Stores the low 32 bits with a volatile write to a valid address of that width.

ablaUnsafeVolatileStoreU64 (extern)

trusted noescape extern:"intrinsic" fun ablaUnsafeVolatileStoreU64(
    address: int,
    value: int
): void

Stores the low 64 bits with a volatile write to a valid address of that width.

mmioLoadU8 (fun)

@__abla_trusted_only("error")
trusted fun mmioLoadU8(address: int): int

Reads a unsigned 8-bit value from an appropriately aligned, readable device register.

mmioLoadU16 (fun)

@__abla_trusted_only("error")
trusted fun mmioLoadU16(address: int): int

Reads a unsigned 16-bit value from an appropriately aligned, readable device register.

mmioLoadU32 (fun)

@__abla_trusted_only("error")
trusted fun mmioLoadU32(address: int): int

Reads a unsigned 32-bit value from an appropriately aligned, readable device register.

mmioLoadU64 (fun)

@__abla_trusted_only("error")
trusted fun mmioLoadU64(address: int): int

Reads a 64-bit bit pattern from an appropriately aligned, readable device register.

mmioStoreU8 (fun)

@__abla_trusted_only("error")
trusted fun mmioStoreU8(address: int, value: int): void

Writes the low 8 bits to an appropriately aligned, writable device register.

mmioStoreU16 (fun)

@__abla_trusted_only("error")
trusted fun mmioStoreU16(address: int, value: int): void

Writes the low 16 bits to an appropriately aligned, writable device register.

mmioStoreU32 (fun)

@__abla_trusted_only("error")
trusted fun mmioStoreU32(address: int, value: int): void

Writes the low 32 bits to an appropriately aligned, writable device register.

mmioStoreU64 (fun)

@__abla_trusted_only("error")
trusted fun mmioStoreU64(address: int, value: int): void

Writes the low 64 bits to an appropriately aligned, writable device register.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.