2 * @brief Din port header file
5 * Aliases, constants and function prototype relevant for DIN port
13 /** @brief Alias for getBit function */
14 #define DINGetBit( port, bit ) gioGetBit(port, bit)
15 /** @brief Alias for setBit function */
16 #define DINSetBit( port, bit, value ) gioSetBit(port, bit, value)
18 /** @brief Alias port address used by DIN port */
19 #define DIN_PORT gioPORTA
21 /** @brief Constant for DIN bit index in DOUT register */
23 /** @brief Constant for DIN bit index in DOUT register */
25 /** @brief Constant for DIN bit index in DOUT register */
27 /** @brief Constant for DIN bit index in DOUT register */
29 /** @brief Constant for DIN bit index in DOUT register */
31 /** @brief Constant for DIN bit index in DOUT register */
33 /** @brief Constant for DIN bit index in DOUT register */
35 /** @brief Constant for DIN bit index in DOUT register */
38 /** @brief Alias for pair PORT, BIT which defines pin for access */
39 #define DIN8 DIN_PORT,DIN8_BIT
40 /** @brief Alias for pair PORT, BIT which defines pin for access */
41 #define DIN9 DIN_PORT,DIN9_BIT
42 /** @brief Alias for pair PORT, BIT which defines pin for access */
43 #define DIN10 DIN_PORT,DIN10_BIT
44 /** @brief Alias for pair PORT, BIT which defines pin for access */
45 #define DIN11 DIN_PORT,DIN11_BIT
46 /** @brief Alias for pair PORT, BIT which defines pin for access */
47 #define DIN12 DIN_PORT,DIN12_BIT
48 /** @brief Alias for pair PORT, BIT which defines pin for access */
49 #define DIN13 DIN_PORT,DIN13_BIT
50 /** @brief Alias for pair PORT, BIT which defines pin for access */
51 #define DIN14 DIN_PORT,DIN14_BIT
52 /** @brief Alias for pair PORT, BIT which defines pin for access */
53 #define DIN15 DIN_PORT,DIN15_BIT
55 /** @brief Set value to DIN port
56 * @param[in] value to write to port
57 * - 0bit - 7bit equals to DIN8 - DIN15 value
58 * - 8bit - 31bit does not matter
60 * Set value of whole DIN port
62 void dinSetPort(uint32_t value);
64 /** @brief Read value from DIN port DIN
66 * Reads a the current value from the DIN port
67 * @return Value of port
69 uint32_t dinGetPort();