7#ifndef MCAL_PORT_2018_01_10_H_
8 #define MCAL_PORT_2018_01_10_H_
19 template<
typename addr_type,
33 port_direction_register,
34 static_cast<std::uint32_t
>(UINT32_C(0x01) << (bpos))>::reg_or();
39 interrupt_mask_register,
40 ~static_cast<std::uint32_t>(UINT32_C(0x01) << (bpos))>::reg_and();
46 ~static_cast<std::uint32_t>(UINT32_C(0x01) << (bpos))>::reg_and();
56 interrupt_mask_register,
57 ~static_cast<std::uint32_t>(UINT32_C(0x01) << (bpos))>::reg_and();
62 port_direction_register,
63 ~static_cast<std::uint32_t>(UINT32_C(0x01) << (bpos))>::reg_and();
105 output_data_register,
110 static constexpr addr_type input_data_register = addr_type(
port + 0x00UL);
111 static constexpr addr_type output_data_register = addr_type(
port + 0x04UL);
112 static constexpr addr_type port_direction_register = addr_type(
port + 0x08UL);
114 static constexpr addr_type interrupt_mask_register = addr_type(
port + 0x0CUL);
115 static constexpr addr_type interrupt_polarity_register = addr_type(
port + 0x10UL);
116 static constexpr addr_type interrupt_edge_register = addr_type(
port + 0x14UL);
static void set_direction_output()
static void set_pin_high()
static bool read_input_value()
static void set_pin_low()
static void set_direction_input()
void init(const config_type *)