MPL3115A2.Registers (mpl3115a2 v1.0.1)
This module provides a wrapper around the MPL3115A2 registers described in Freescale's data sheet.
Link to this section Summary
Functions
Read the contents of the bar_in_lsb
register.
Read the contents of the bar_in_msb
register.
Read the contents of the ctrl_reg1
register.
Read the contents of the ctrl_reg2
register.
Read the contents of the ctrl_reg3
register.
Read the contents of the ctrl_reg4
register.
Read the contents of the ctrl_reg5
register.
Read the contents of the dr_status
register.
Read the contents of the f_data
register.
Read the contents of the f_setup
register.
Read the contents of the f_status
register.
Read the contents of the int_source
register.
Read the contents of the off_h
register.
Read the contents of the off_p
register.
Read the contents of the off_t
register.
Read the contents of the out_p_csb
register.
Read the contents of the out_p_delta_csb
register.
Read the contents of the out_p_delta_lsb
register.
Read the contents of the out_p_delta_msb
register.
Read the contents of the out_p_lsb
register.
Read the contents of the out_p_msb
register.
Read the contents of the out_t_delta_lsb
register.
Read the contents of the out_t_delta_msb
register.
Read the contents of the out_t_lsb
register.
Read the contents of the out_t_msb
register.
Read the contents of the p_max_csb
register.
Read the contents of the p_max_lsb
register.
Read the contents of the p_max_msb
register.
Read the contents of the p_min_csb
register.
Read the contents of the p_min_lsb
register.
Read the contents of the p_min_msb
register.
Read the contents of the p_tgt_lsb
register.
Read the contents of the p_tgt_msb
register.
Read the contents of the p_wnd_lsb
register.
Read the contents of the p_wnd_msb
register.
Read the contents of the pt_data_cfg
register.
Read the contents of the status
register.
Read the contents of the sysmod
register.
Read the contents of the t_max_lsb
register.
Read the contents of the t_max_msb
register.
Read the contents of the t_min_lsb
register.
Read the contents of the t_min_msb
register.
Read the contents of the t_tgt
register.
Read the contents of the t_wnd
register.
Read the contents of the time_dly
register.
Read the contents of the who_am_i
register.
Swap the contents of the bar_in_lsb
register.
Swap the contents of the bar_in_msb
register.
Swap the contents of the ctrl_reg1
register.
Swap the contents of the ctrl_reg2
register.
Swap the contents of the ctrl_reg3
register.
Swap the contents of the ctrl_reg4
register.
Swap the contents of the ctrl_reg5
register.
Swap the contents of the f_setup
register.
Swap the contents of the off_h
register.
Swap the contents of the off_p
register.
Swap the contents of the off_t
register.
Swap the contents of the p_max_csb
register.
Swap the contents of the p_max_lsb
register.
Swap the contents of the p_max_msb
register.
Swap the contents of the p_min_csb
register.
Swap the contents of the p_min_lsb
register.
Swap the contents of the p_min_msb
register.
Swap the contents of the p_tgt_lsb
register.
Swap the contents of the p_tgt_msb
register.
Swap the contents of the p_wnd_lsb
register.
Swap the contents of the p_wnd_msb
register.
Swap the contents of the pt_data_cfg
register.
Swap the contents of the t_max_lsb
register.
Swap the contents of the t_max_msb
register.
Swap the contents of the t_min_lsb
register.
Swap the contents of the t_min_msb
register.
Swap the contents of the t_tgt
register.
Swap the contents of the t_wnd
register.
Update the contents of the bar_in_lsb
register using a
transformation function.
Update the contents of the bar_in_msb
register using a
transformation function.
Update the contents of the ctrl_reg1
register using a
transformation function.
Update the contents of the ctrl_reg2
register using a
transformation function.
Update the contents of the ctrl_reg3
register using a
transformation function.
Update the contents of the ctrl_reg4
register using a
transformation function.
Update the contents of the ctrl_reg5
register using a
transformation function.
Update the contents of the f_setup
register using a
transformation function.
Update the contents of the off_h
register using a
transformation function.
Update the contents of the off_p
register using a
transformation function.
Update the contents of the off_t
register using a
transformation function.
Update the contents of the p_max_csb
register using a
transformation function.
Update the contents of the p_max_lsb
register using a
transformation function.
Update the contents of the p_max_msb
register using a
transformation function.
Update the contents of the p_min_csb
register using a
transformation function.
Update the contents of the p_min_lsb
register using a
transformation function.
Update the contents of the p_min_msb
register using a
transformation function.
Update the contents of the p_tgt_lsb
register using a
transformation function.
Update the contents of the p_tgt_msb
register using a
transformation function.
Update the contents of the p_wnd_lsb
register using a
transformation function.
Update the contents of the p_wnd_msb
register using a
transformation function.
Update the contents of the pt_data_cfg
register using a
transformation function.
Update the contents of the t_max_lsb
register using a
transformation function.
Update the contents of the t_max_msb
register using a
transformation function.
Update the contents of the t_min_lsb
register using a
transformation function.
Update the contents of the t_min_msb
register using a
transformation function.
Update the contents of the t_tgt
register using a
transformation function.
Update the contents of the t_wnd
register using a
transformation function.
Write new contents to the bar_in_lsb
register.
Write new contents to the bar_in_msb
register.
Write new contents to the ctrl_reg1
register.
Write new contents to the ctrl_reg2
register.
Write new contents to the ctrl_reg3
register.
Write new contents to the ctrl_reg4
register.
Write new contents to the ctrl_reg5
register.
Write new contents to the f_setup
register.
Write new contents to the off_h
register.
Write new contents to the off_p
register.
Write new contents to the off_t
register.
Write new contents to the p_max_csb
register.
Write new contents to the p_max_lsb
register.
Write new contents to the p_max_msb
register.
Write new contents to the p_min_csb
register.
Write new contents to the p_min_lsb
register.
Write new contents to the p_min_msb
register.
Write new contents to the p_tgt_lsb
register.
Write new contents to the p_tgt_msb
register.
Write new contents to the p_wnd_lsb
register.
Write new contents to the p_wnd_msb
register.
Write new contents to the pt_data_cfg
register.
Write new contents to the t_max_lsb
register.
Write new contents to the t_max_msb
register.
Write new contents to the t_min_lsb
register.
Write new contents to the t_min_msb
register.
Write new contents to the t_tgt
register.
Write new contents to the t_wnd
register.
Link to this section Functions
read_bar_in_lsb(conn)
@spec read_bar_in_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the bar_in_lsb
register.
Example
iex> read_bar_in_lsb(conn)
{:ok, <<0>>}
read_bar_in_msb(conn)
@spec read_bar_in_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the bar_in_msb
register.
Example
iex> read_bar_in_msb(conn)
{:ok, <<0>>}
read_ctrl_reg1(conn)
@spec read_ctrl_reg1(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the ctrl_reg1
register.
Example
iex> read_ctrl_reg1(conn)
{:ok, <<0>>}
read_ctrl_reg2(conn)
@spec read_ctrl_reg2(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the ctrl_reg2
register.
Example
iex> read_ctrl_reg2(conn)
{:ok, <<0>>}
read_ctrl_reg3(conn)
@spec read_ctrl_reg3(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the ctrl_reg3
register.
Example
iex> read_ctrl_reg3(conn)
{:ok, <<0>>}
read_ctrl_reg4(conn)
@spec read_ctrl_reg4(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the ctrl_reg4
register.
Example
iex> read_ctrl_reg4(conn)
{:ok, <<0>>}
read_ctrl_reg5(conn)
@spec read_ctrl_reg5(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the ctrl_reg5
register.
Example
iex> read_ctrl_reg5(conn)
{:ok, <<0>>}
read_dr_status(conn)
@spec read_dr_status(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the dr_status
register.
Example
iex> read_dr_status(conn)
{:ok, <<0>>}
read_f_data(conn)
@spec read_f_data(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the f_data
register.
Example
iex> read_f_data(conn)
{:ok, <<0>>}
read_f_setup(conn)
@spec read_f_setup(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the f_setup
register.
Example
iex> read_f_setup(conn)
{:ok, <<0>>}
read_f_status(conn)
@spec read_f_status(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the f_status
register.
Example
iex> read_f_status(conn)
{:ok, <<0>>}
read_int_source(conn)
@spec read_int_source(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the int_source
register.
Example
iex> read_int_source(conn)
{:ok, <<0>>}
read_off_h(conn)
@spec read_off_h(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the off_h
register.
Example
iex> read_off_h(conn)
{:ok, <<0>>}
read_off_p(conn)
@spec read_off_p(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the off_p
register.
Example
iex> read_off_p(conn)
{:ok, <<0>>}
read_off_t(conn)
@spec read_off_t(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the off_t
register.
Example
iex> read_off_t(conn)
{:ok, <<0>>}
read_out_p_csb(conn)
@spec read_out_p_csb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_p_csb
register.
Example
iex> read_out_p_csb(conn)
{:ok, <<0>>}
read_out_p_delta_csb(conn)
@spec read_out_p_delta_csb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_p_delta_csb
register.
Example
iex> read_out_p_delta_csb(conn)
{:ok, <<0>>}
read_out_p_delta_lsb(conn)
@spec read_out_p_delta_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_p_delta_lsb
register.
Example
iex> read_out_p_delta_lsb(conn)
{:ok, <<0>>}
read_out_p_delta_msb(conn)
@spec read_out_p_delta_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_p_delta_msb
register.
Example
iex> read_out_p_delta_msb(conn)
{:ok, <<0>>}
read_out_p_lsb(conn)
@spec read_out_p_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_p_lsb
register.
Example
iex> read_out_p_lsb(conn)
{:ok, <<0>>}
read_out_p_msb(conn)
@spec read_out_p_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_p_msb
register.
Example
iex> read_out_p_msb(conn)
{:ok, <<0>>}
read_out_t_delta_lsb(conn)
@spec read_out_t_delta_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_t_delta_lsb
register.
Example
iex> read_out_t_delta_lsb(conn)
{:ok, <<0>>}
read_out_t_delta_msb(conn)
@spec read_out_t_delta_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_t_delta_msb
register.
Example
iex> read_out_t_delta_msb(conn)
{:ok, <<0>>}
read_out_t_lsb(conn)
@spec read_out_t_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_t_lsb
register.
Example
iex> read_out_t_lsb(conn)
{:ok, <<0>>}
read_out_t_msb(conn)
@spec read_out_t_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the out_t_msb
register.
Example
iex> read_out_t_msb(conn)
{:ok, <<0>>}
read_p_max_csb(conn)
@spec read_p_max_csb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_max_csb
register.
Example
iex> read_p_max_csb(conn)
{:ok, <<0>>}
read_p_max_lsb(conn)
@spec read_p_max_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_max_lsb
register.
Example
iex> read_p_max_lsb(conn)
{:ok, <<0>>}
read_p_max_msb(conn)
@spec read_p_max_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_max_msb
register.
Example
iex> read_p_max_msb(conn)
{:ok, <<0>>}
read_p_min_csb(conn)
@spec read_p_min_csb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_min_csb
register.
Example
iex> read_p_min_csb(conn)
{:ok, <<0>>}
read_p_min_lsb(conn)
@spec read_p_min_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_min_lsb
register.
Example
iex> read_p_min_lsb(conn)
{:ok, <<0>>}
read_p_min_msb(conn)
@spec read_p_min_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_min_msb
register.
Example
iex> read_p_min_msb(conn)
{:ok, <<0>>}
read_p_tgt_lsb(conn)
@spec read_p_tgt_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_tgt_lsb
register.
Example
iex> read_p_tgt_lsb(conn)
{:ok, <<0>>}
read_p_tgt_msb(conn)
@spec read_p_tgt_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_tgt_msb
register.
Example
iex> read_p_tgt_msb(conn)
{:ok, <<0>>}
read_p_wnd_lsb(conn)
@spec read_p_wnd_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_wnd_lsb
register.
Example
iex> read_p_wnd_lsb(conn)
{:ok, <<0>>}
read_p_wnd_msb(conn)
@spec read_p_wnd_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the p_wnd_msb
register.
Example
iex> read_p_wnd_msb(conn)
{:ok, <<0>>}
read_pt_data_cfg(conn)
@spec read_pt_data_cfg(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the pt_data_cfg
register.
Example
iex> read_pt_data_cfg(conn)
{:ok, <<0>>}
read_status(conn)
@spec read_status(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the status
register.
Example
iex> read_status(conn)
{:ok, <<0>>}
read_sysmod(conn)
@spec read_sysmod(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the sysmod
register.
Example
iex> read_sysmod(conn)
{:ok, <<0>>}
read_t_max_lsb(conn)
@spec read_t_max_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the t_max_lsb
register.
Example
iex> read_t_max_lsb(conn)
{:ok, <<0>>}
read_t_max_msb(conn)
@spec read_t_max_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the t_max_msb
register.
Example
iex> read_t_max_msb(conn)
{:ok, <<0>>}
read_t_min_lsb(conn)
@spec read_t_min_lsb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the t_min_lsb
register.
Example
iex> read_t_min_lsb(conn)
{:ok, <<0>>}
read_t_min_msb(conn)
@spec read_t_min_msb(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the t_min_msb
register.
Example
iex> read_t_min_msb(conn)
{:ok, <<0>>}
read_t_tgt(conn)
@spec read_t_tgt(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the t_tgt
register.
Example
iex> read_t_tgt(conn)
{:ok, <<0>>}
read_t_wnd(conn)
@spec read_t_wnd(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the t_wnd
register.
Example
iex> read_t_wnd(conn)
{:ok, <<0>>}
read_time_dly(conn)
@spec read_time_dly(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the time_dly
register.
Example
iex> read_time_dly(conn)
{:ok, <<0>>}
read_who_am_i(conn)
@spec read_who_am_i(Wafer.Conn.t()) :: {:ok, binary()} | {:error, reason :: any()}
Read the contents of the who_am_i
register.
Example
iex> read_who_am_i(conn)
{:ok, <<0>>}
swap_bar_in_lsb(conn, data)
@spec swap_bar_in_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the bar_in_lsb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_bar_in_lsb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_bar_in_msb(conn, data)
@spec swap_bar_in_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the bar_in_msb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_bar_in_msb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_ctrl_reg1(conn, data)
@spec swap_ctrl_reg1(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the ctrl_reg1
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_ctrl_reg1(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_ctrl_reg2(conn, data)
@spec swap_ctrl_reg2(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the ctrl_reg2
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_ctrl_reg2(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_ctrl_reg3(conn, data)
@spec swap_ctrl_reg3(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the ctrl_reg3
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_ctrl_reg3(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_ctrl_reg4(conn, data)
@spec swap_ctrl_reg4(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the ctrl_reg4
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_ctrl_reg4(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_ctrl_reg5(conn, data)
@spec swap_ctrl_reg5(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the ctrl_reg5
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_ctrl_reg5(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_f_setup(conn, data)
@spec swap_f_setup(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the f_setup
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_f_setup(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_off_h(conn, data)
@spec swap_off_h(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the off_h
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_off_h(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_off_p(conn, data)
@spec swap_off_p(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the off_p
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_off_p(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_off_t(conn, data)
@spec swap_off_t(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the off_t
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_off_t(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_max_csb(conn, data)
@spec swap_p_max_csb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_max_csb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_max_csb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_max_lsb(conn, data)
@spec swap_p_max_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_max_lsb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_max_lsb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_max_msb(conn, data)
@spec swap_p_max_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_max_msb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_max_msb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_min_csb(conn, data)
@spec swap_p_min_csb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_min_csb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_min_csb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_min_lsb(conn, data)
@spec swap_p_min_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_min_lsb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_min_lsb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_min_msb(conn, data)
@spec swap_p_min_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_min_msb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_min_msb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_tgt_lsb(conn, data)
@spec swap_p_tgt_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_tgt_lsb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_tgt_lsb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_tgt_msb(conn, data)
@spec swap_p_tgt_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_tgt_msb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_tgt_msb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_wnd_lsb(conn, data)
@spec swap_p_wnd_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_wnd_lsb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_wnd_lsb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_p_wnd_msb(conn, data)
@spec swap_p_wnd_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the p_wnd_msb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_p_wnd_msb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_pt_data_cfg(conn, data)
@spec swap_pt_data_cfg(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the pt_data_cfg
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_pt_data_cfg(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_t_max_lsb(conn, data)
@spec swap_t_max_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the t_max_lsb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_t_max_lsb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_t_max_msb(conn, data)
@spec swap_t_max_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the t_max_msb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_t_max_msb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_t_min_lsb(conn, data)
@spec swap_t_min_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the t_min_lsb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_t_min_lsb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_t_min_msb(conn, data)
@spec swap_t_min_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the t_min_msb
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_t_min_msb(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_t_tgt(conn, data)
@spec swap_t_tgt(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the t_tgt
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_t_tgt(conn, <<0>>)
{:ok, <<0>>, _conn}
swap_t_wnd(conn, data)
@spec swap_t_wnd(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Swap the contents of the t_wnd
register.
Reads the contents of the register, then replaces it, returning the previous contents. Some drivers may implement this atomically.
Example
iex> swap_t_wnd(conn, <<0>>)
{:ok, <<0>>, _conn}
update_bar_in_lsb(conn, callback)
@spec update_bar_in_lsb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the bar_in_lsb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_bar_in_lsb(conn, transform)
{:ok, _conn}
update_bar_in_msb(conn, callback)
@spec update_bar_in_msb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the bar_in_msb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_bar_in_msb(conn, transform)
{:ok, _conn}
update_ctrl_reg1(conn, callback)
@spec update_ctrl_reg1(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the ctrl_reg1
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_ctrl_reg1(conn, transform)
{:ok, _conn}
update_ctrl_reg2(conn, callback)
@spec update_ctrl_reg2(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the ctrl_reg2
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_ctrl_reg2(conn, transform)
{:ok, _conn}
update_ctrl_reg3(conn, callback)
@spec update_ctrl_reg3(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the ctrl_reg3
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_ctrl_reg3(conn, transform)
{:ok, _conn}
update_ctrl_reg4(conn, callback)
@spec update_ctrl_reg4(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the ctrl_reg4
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_ctrl_reg4(conn, transform)
{:ok, _conn}
update_ctrl_reg5(conn, callback)
@spec update_ctrl_reg5(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the ctrl_reg5
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_ctrl_reg5(conn, transform)
{:ok, _conn}
update_f_setup(conn, callback)
@spec update_f_setup(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the f_setup
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_f_setup(conn, transform)
{:ok, _conn}
update_off_h(conn, callback)
@spec update_off_h(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the off_h
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_off_h(conn, transform)
{:ok, _conn}
update_off_p(conn, callback)
@spec update_off_p(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the off_p
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_off_p(conn, transform)
{:ok, _conn}
update_off_t(conn, callback)
@spec update_off_t(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the off_t
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_off_t(conn, transform)
{:ok, _conn}
update_p_max_csb(conn, callback)
@spec update_p_max_csb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_max_csb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_max_csb(conn, transform)
{:ok, _conn}
update_p_max_lsb(conn, callback)
@spec update_p_max_lsb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_max_lsb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_max_lsb(conn, transform)
{:ok, _conn}
update_p_max_msb(conn, callback)
@spec update_p_max_msb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_max_msb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_max_msb(conn, transform)
{:ok, _conn}
update_p_min_csb(conn, callback)
@spec update_p_min_csb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_min_csb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_min_csb(conn, transform)
{:ok, _conn}
update_p_min_lsb(conn, callback)
@spec update_p_min_lsb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_min_lsb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_min_lsb(conn, transform)
{:ok, _conn}
update_p_min_msb(conn, callback)
@spec update_p_min_msb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_min_msb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_min_msb(conn, transform)
{:ok, _conn}
update_p_tgt_lsb(conn, callback)
@spec update_p_tgt_lsb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_tgt_lsb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_tgt_lsb(conn, transform)
{:ok, _conn}
update_p_tgt_msb(conn, callback)
@spec update_p_tgt_msb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_tgt_msb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_tgt_msb(conn, transform)
{:ok, _conn}
update_p_wnd_lsb(conn, callback)
@spec update_p_wnd_lsb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_wnd_lsb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_wnd_lsb(conn, transform)
{:ok, _conn}
update_p_wnd_msb(conn, callback)
@spec update_p_wnd_msb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the p_wnd_msb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_p_wnd_msb(conn, transform)
{:ok, _conn}
update_pt_data_cfg(conn, callback)
@spec update_pt_data_cfg(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the pt_data_cfg
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_pt_data_cfg(conn, transform)
{:ok, _conn}
update_t_max_lsb(conn, callback)
@spec update_t_max_lsb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the t_max_lsb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_t_max_lsb(conn, transform)
{:ok, _conn}
update_t_max_msb(conn, callback)
@spec update_t_max_msb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the t_max_msb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_t_max_msb(conn, transform)
{:ok, _conn}
update_t_min_lsb(conn, callback)
@spec update_t_min_lsb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the t_min_lsb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_t_min_lsb(conn, transform)
{:ok, _conn}
update_t_min_msb(conn, callback)
@spec update_t_min_msb(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the t_min_msb
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_t_min_msb(conn, transform)
{:ok, _conn}
update_t_tgt(conn, callback)
@spec update_t_tgt(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the t_tgt
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_t_tgt(conn, transform)
{:ok, _conn}
update_t_wnd(conn, callback)
@spec update_t_wnd(Wafer.Conn.t(), (<<_::_*8>> -> <<_::_*8>>)) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Update the contents of the t_wnd
register using a
transformation function.
Example
iex> transform = fn <<data::size(8)>> -> <<(data * 2)::size(8)>> end
...> update_t_wnd(conn, transform)
{:ok, _conn}
write_bar_in_lsb(conn, data)
@spec write_bar_in_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the bar_in_lsb
register.
Example
iex> write_bar_in_lsb(conn, <<0>>)
{:ok, _conn}
write_bar_in_msb(conn, data)
@spec write_bar_in_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the bar_in_msb
register.
Example
iex> write_bar_in_msb(conn, <<0>>)
{:ok, _conn}
write_ctrl_reg1(conn, data)
@spec write_ctrl_reg1(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the ctrl_reg1
register.
Example
iex> write_ctrl_reg1(conn, <<0>>)
{:ok, _conn}
write_ctrl_reg2(conn, data)
@spec write_ctrl_reg2(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the ctrl_reg2
register.
Example
iex> write_ctrl_reg2(conn, <<0>>)
{:ok, _conn}
write_ctrl_reg3(conn, data)
@spec write_ctrl_reg3(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the ctrl_reg3
register.
Example
iex> write_ctrl_reg3(conn, <<0>>)
{:ok, _conn}
write_ctrl_reg4(conn, data)
@spec write_ctrl_reg4(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the ctrl_reg4
register.
Example
iex> write_ctrl_reg4(conn, <<0>>)
{:ok, _conn}
write_ctrl_reg5(conn, data)
@spec write_ctrl_reg5(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the ctrl_reg5
register.
Example
iex> write_ctrl_reg5(conn, <<0>>)
{:ok, _conn}
write_f_setup(conn, data)
@spec write_f_setup(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the f_setup
register.
Example
iex> write_f_setup(conn, <<0>>)
{:ok, _conn}
write_off_h(conn, data)
@spec write_off_h(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the off_h
register.
Example
iex> write_off_h(conn, <<0>>)
{:ok, _conn}
write_off_p(conn, data)
@spec write_off_p(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the off_p
register.
Example
iex> write_off_p(conn, <<0>>)
{:ok, _conn}
write_off_t(conn, data)
@spec write_off_t(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the off_t
register.
Example
iex> write_off_t(conn, <<0>>)
{:ok, _conn}
write_p_max_csb(conn, data)
@spec write_p_max_csb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_max_csb
register.
Example
iex> write_p_max_csb(conn, <<0>>)
{:ok, _conn}
write_p_max_lsb(conn, data)
@spec write_p_max_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_max_lsb
register.
Example
iex> write_p_max_lsb(conn, <<0>>)
{:ok, _conn}
write_p_max_msb(conn, data)
@spec write_p_max_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_max_msb
register.
Example
iex> write_p_max_msb(conn, <<0>>)
{:ok, _conn}
write_p_min_csb(conn, data)
@spec write_p_min_csb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_min_csb
register.
Example
iex> write_p_min_csb(conn, <<0>>)
{:ok, _conn}
write_p_min_lsb(conn, data)
@spec write_p_min_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_min_lsb
register.
Example
iex> write_p_min_lsb(conn, <<0>>)
{:ok, _conn}
write_p_min_msb(conn, data)
@spec write_p_min_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_min_msb
register.
Example
iex> write_p_min_msb(conn, <<0>>)
{:ok, _conn}
write_p_tgt_lsb(conn, data)
@spec write_p_tgt_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_tgt_lsb
register.
Example
iex> write_p_tgt_lsb(conn, <<0>>)
{:ok, _conn}
write_p_tgt_msb(conn, data)
@spec write_p_tgt_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_tgt_msb
register.
Example
iex> write_p_tgt_msb(conn, <<0>>)
{:ok, _conn}
write_p_wnd_lsb(conn, data)
@spec write_p_wnd_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_wnd_lsb
register.
Example
iex> write_p_wnd_lsb(conn, <<0>>)
{:ok, _conn}
write_p_wnd_msb(conn, data)
@spec write_p_wnd_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the p_wnd_msb
register.
Example
iex> write_p_wnd_msb(conn, <<0>>)
{:ok, _conn}
write_pt_data_cfg(conn, data)
@spec write_pt_data_cfg(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the pt_data_cfg
register.
Example
iex> write_pt_data_cfg(conn, <<0>>)
{:ok, _conn}
write_t_max_lsb(conn, data)
@spec write_t_max_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the t_max_lsb
register.
Example
iex> write_t_max_lsb(conn, <<0>>)
{:ok, _conn}
write_t_max_msb(conn, data)
@spec write_t_max_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the t_max_msb
register.
Example
iex> write_t_max_msb(conn, <<0>>)
{:ok, _conn}
write_t_min_lsb(conn, data)
@spec write_t_min_lsb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the t_min_lsb
register.
Example
iex> write_t_min_lsb(conn, <<0>>)
{:ok, _conn}
write_t_min_msb(conn, data)
@spec write_t_min_msb(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the t_min_msb
register.
Example
iex> write_t_min_msb(conn, <<0>>)
{:ok, _conn}
write_t_tgt(conn, data)
@spec write_t_tgt(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the t_tgt
register.
Example
iex> write_t_tgt(conn, <<0>>)
{:ok, _conn}
write_t_wnd(conn, data)
@spec write_t_wnd(Wafer.Conn.t(), data :: binary()) :: {:ok, Wafer.Conn.t()} | {:error, reason :: any()}
Write new contents to the t_wnd
register.
Example
iex> write_t_wnd(conn, <<0>>)
{:ok, _conn}