Lines Matching +full:16 +full:- +full:bit

6  * SPDX-License-Identifier: Apache-2.0
48 * @brief Output a 16 bits to an I/O port
50 * This function writes a 16 bits to the given port.
52 * @param data the 16 bits to write
53 * @param port the port address where to write the 16 bits
58 * @brief Input 16 bits from an I/O port
60 * This function reads 16 bits from the port.
62 * @param port the port address from where to read the 16 bits
64 * @return the 16 bits read
89 * @fn static inline void sys_io_set_bit(io_port_t port, unsigned int bit)
90 * @brief Set the designated bit from port to 1
92 * This functions takes the designated bit starting from port and sets it to 1.
94 * @param port the port address from where to look for the bit
95 * @param bit the designated bit to set (from 0 to n)
99 * @fn static inline void sys_io_clear_bit(io_port_t port, unsigned int bit)
100 * @brief Clear the designated bit from port to 0
102 * This functions takes the designated bit starting from port and sets it to 0.
104 * @param port the port address from where to look for the bit
105 * @param bit the designated bit to clear (from 0 to n)
109 * @fn static inline int sys_io_test_bit(io_port_t port, unsigned int bit)
110 * @brief Test the bit from port if it is set or not
112 * This functions takes the designated bit starting from port and tests its
115 * @param port the port address from where to look for the bit
116 * @param bit the designated bit to test (from 0 to n)
122 * @fn static inline int sys_io_test_and_set_bit(io_port_t port, unsigned int bit)
123 * @brief Test the bit from port and set it
125 * This functions takes the designated bit starting from port, tests its
128 * @param port the port address from where to look for the bit
129 * @param bit the designated bit to test and set (from 0 to n)
135 * @fn static inline int sys_io_test_and_clear_bit(io_port_t port, unsigned int bit)
136 * @brief Test the bit from port and clear it
138 * This functions takes the designated bit starting from port, tests its
141 * @param port the port address from where to look for the bit
142 * @param bit the designated bit to test and clear (from 0 to n)
172 * @brief Write 16 bits to a memory mapped register
174 * This function writes 16 bits to the given memory mapped register.
176 * @param data the 16 bits to write
177 * @param addr the memory mapped register address where to write the 16 bits
182 * @brief Read 16 bits from a memory mapped register
184 * This function reads 16 bits from the given memory mapped register.
187 * the 16 bits
189 * @return the 16 bits read
239 * @fn static inline void sys_set_bit(mem_addr_t addr, unsigned int bit)
240 * @brief Set the designated bit from addr to 1
242 * This functions takes the designated bit starting from addr and sets it to 1.
244 * @param addr the memory address from where to look for the bit
245 * @param bit the designated bit to set (from 0 to 31)
255 * @param mask the bit mask of a 32 bits data to set
265 * @param mask the bit mask of a 32 bits data to set
269 * @fn static inline void sys_clear_bit(mem_addr_t addr, unsigned int bit)
270 * @brief Clear the designated bit from addr to 0
272 * This functions takes the designated bit starting from addr and sets it to 0.
274 * @param addr the memory address from where to look for the bit
275 * @param bit the designated bit to clear (from 0 to 31)
279 * @fn static inline int sys_test_bit(mem_addr_t addr, unsigned int bit)
280 * @brief Test the bit if it is set or not
282 * This functions takes the designated bit starting from addr and tests its
285 * @param addr the memory address from where to look for the bit
286 * @param bit the designated bit to test (from 0 to 31)
292 * @fn static inline int sys_test_and_set_bit(mem_addr_t addr, unsigned int bit)
293 * @brief Test the bit and set it
295 * This functions takes the designated bit starting from addr, tests its
298 * @param addr the memory address from where to look for the bit
299 * @param bit the designated bit to test and set (from 0 to 31)
305 * @fn static inline int sys_test_and_clear_bit(mem_addr_t addr, unsigned int bit)
306 * @brief Test the bit and clear it
308 * This functions takes the designated bit starting from addr, test its
311 * @param addr the memory address from where to look for the bit
312 * @param bit the designated bit to test and clear (from 0 to 31)
318 * @fn static inline void sys_bitfield_set_bit(mem_addr_t addr, unsigned int bit)
319 * @brief Set the designated bit from addr to 1
321 * This functions takes the designated bit starting from addr and sets it to 1.
323 * @param addr the memory address from where to look for the bit
324 * @param bit the designated bit to set (arbitrary)
328 * @fn static inline void sys_bitfield_clear_bit(mem_addr_t addr, unsigned int bit)
329 * @brief Clear the designated bit from addr to 0
331 * This functions takes the designated bit starting from addr and sets it to 0.
333 * @param addr the memory address from where to look for the bit
334 * @param bit the designated bit to clear (arbitrary)
338 * @fn static inline int sys_bitfield_test_bit(mem_addr_t addr, unsigned int bit)
339 * @brief Test the bit if it is set or not
341 * This functions takes the designated bit starting from addr and tests its
344 * @param addr the memory address from where to look for the bit
345 * @param bit the designated bit to test (arbitrary
351 * @fn static inline int sys_bitfield_test_and_set_bit(mem_addr_t addr, unsigned int bit)
352 * @brief Test the bit and set it
354 * This functions takes the designated bit starting from addr, tests its
357 * @param addr the memory address from where to look for the bit
358 * @param bit the designated bit to test and set (arbitrary)
364 * @fn static inline int sys_bitfield_test_and_clear_bit(mem_addr_t addr, unsigned int bit)
365 * @brief Test the bit and clear it
367 * This functions takes the designated bit starting from addr, test its
370 * @param addr the memory address from where to look for the bit
371 * @param bit the designated bit to test and clear (arbitrary)