Changeset bf70702 in rtems for cpukit/include/dev/serial/sc16is752.h
- Timestamp:
- 02/09/18 07:59:27 (5 years ago)
- Branches:
- 5, master
- Children:
- b2e26b7
- Parents:
- 6878519
- git-author:
- Christian Mauderer <christian.mauderer@…> (02/09/18 07:59:27)
- git-committer:
- Christian Mauderer <christian.mauderer@…> (02/12/18 13:36:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/dev/serial/sc16is752.h
r6878519 rbf70702 252 252 253 253 /** 254 * @brief Set the I/O Control bits except for the SRESET. 255 * 256 * Note that it will not be possible to set the SRESET. Otherwise the driver 257 * might would have an undefined state. 258 */ 259 #define SC16IS752_SET_IOCONTROL _IOW('d', 1, uint8_t) 260 261 /** 262 * @brief Set the I/O pins direction register. 263 */ 264 #define SC16IS752_SET_IODIR _IOW('d', 2, uint8_t) 265 266 /** 267 * @brief Set the I/O pins state register. 268 */ 269 #define SC16IS752_SET_IOSTATE _IOW('d', 3, uint8_t) 270 271 /** 254 272 * @brief Returns non-zero in case the sleep mode is enabled, otherwise zero. 255 273 */ 256 274 #define SC16IS752_GET_SLEEP_MODE _IOR('d', 0, int) 275 276 /** 277 * @brief Read the I/O Control register. 278 */ 279 #define SC16IS752_GET_IOCONTROL _IOR('d', 1, uint8_t) 280 281 /** 282 * @brief Read the I/O pins direction register. 283 */ 284 #define SC16IS752_GET_IODIR _IOR('d', 2, uint8_t) 285 286 /** 287 * @brief Read the I/O pins state register. 288 */ 289 #define SC16IS752_GET_IOSTATE _IOR('d', 3, uint8_t) 290 291 /** 292 * @brief Bits for the IOCONTROL register. 293 * @{ 294 */ 295 #define SC16IS752_IOCONTROL_SRESET (1u << 3) 296 #define SC16IS752_IOCONTROL_GPIO_3_0_OR_MODEM (1u << 2) 297 #define SC16IS752_IOCONTROL_GPIO_7_4_OR_MODEM (1u << 1) 298 #define SC16IS752_IOCONTROL_IOLATCH (1u << 0) 299 /** 300 * @} 301 */ 257 302 258 303 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.