Memory layout of a data structure: Difference between revisions

Content added Content deleted
Line 369: Line 369:
:- type rs232 == bitmap.
:- type rs232 == bitmap.


:- func rs232_bits = rs232.
:- func rs232_bits = rs232.
:- func rs232_bits(bool) = rs232.
:- func rs232_bits(bool) = rs232.

:- func rs232_set(rs232, rs232_pin) = rs232.
:- func rs232_clear(rs232, rs232_pin) = rs232.
:- func rs232_set(rs232, rs232_pin) = rs232.
:- func rs232_clear(rs232, rs232_pin) = rs232.

:- func rs232_set_bits(rs232, list(rs232_pin)) = rs232.
:- func rs232_set_bits(rs232, list(rs232_pin)) = rs232.
:- func rs232_clear_bits(rs232, list(rs232_pin)) = rs232.
:- func rs232_clear_bits(rs232, list(rs232_pin)) = rs232.