protected_write_io

Write to am 8-bit I/O register protected by CCP or a protection bit.

void protected_write_io(
    void * addr,
    uint8_t magic,
    uint8_t value
)

Parameters

addr

Type: void *

Address of the I/O register

magic

Type: uint8_t

CCP magic value or Mask for protection bit

value

Type: uint8_t

Value to be written

Returns

Type: void