Explain the practical use cases of shift operators and bitwise operations in device driver development.