Lines Matching +full:32 +full:- +full:bit

6  * SPDX-License-Identifier: Apache-2.0
69 * @brief Output 32 bits to an I/O port
71 * This function writes 32 bits to the given port.
73 * @param data the 32 bits to write
74 * @param port the port address where to write the 32 bits
79 * @brief Input 32 bits from an I/O port
81 * This function reads 32 bits from the port.
83 * @param port the port address from where to read the 32 bits
85 * @return the 32 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)
194 * @brief Write 32 bits to a memory mapped register
196 * This function writes 32 bits to the given memory mapped register.
198 * @param data the 32 bits to write
199 * @param addr the memory mapped register address where to write the 32 bits
204 * @brief Read 32 bits from a memory mapped register
206 * This function reads 32 bits from the given memory mapped register.
209 * the 32 bits
211 * @return the 32 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)