Questions tagged [drivers]
The drivers tag has no usage guidance.
30
questions
2
votes
3
answers
210
views
How to create a shared driver?
As an embedded developer, I often write drivers for hardware (though this question really applies to any shared resource). The "standard" interface I have come up with looks like the ...
2
votes
2
answers
223
views
Operating systems - whose responsibility is it to coordinate process I/O requests?
I am reading Tanenbaum's Modern Operating Systems. I want to understand a particular concept regarding processes and blocking system calls, specifically with regards to I/O. I assume threads might ...
0
votes
0
answers
47
views
How to handle ISR callbacks when writing a Hardware Abstraction Layer (HAL)?
I'm writing a Hardware Abstraction Layer (HAL) to abstract a hardware peripheral on an mcu.
The driver peripheral looks like this.
Driver module. Includes hal.h
void drv_init(void);
void drv_set(int x)...
-1
votes
1
answer
373
views
Architecture for interfacing to embedded systems hardware in c++
I have been spending quite a bit of time recently researching the "best" (read most elegant. robust, simple to use, and resource friendly) ways to develop low-level hardware abstractions for ...
0
votes
2
answers
183
views
How do drivers invoke routines in the original calling program?
I'm reading an introductory article about drivers and came about this quote:
"Once the device sends data back to the driver, the driver may invoke routines in the original calling program. "
...
0
votes
2
answers
349
views
Low level C driver API
Recently I had my first experience writing a wrapper around FTD2XX driver for a desktop tool that communicates with an embedded device. The library provided some common device specific functionality ...
2
votes
0
answers
113
views
How to design software driver for the analog to digital converter?
I have been developing software driver for the analog to digital converter in C++. The a/d converter is primary intended for conversion of the temperature signals. The temperature signals are then ...
0
votes
1
answer
48
views
Software driver for remote digital inputs
I have been facing a task to develop a software driver in C++ for a chip which makes available 8 digital inputs over the SPI bus. In the time being I have been thinking about the interface of the ...
1
vote
0
answers
162
views
How to develop software drivers for the mcu peripherals in C++?
I have been developing a set of software drivers for the peripherals of a MCU. I need to implement those drivers in the C++ programming language. My idea was to model each driver by its own class.
...
-2
votes
2
answers
82
views
How to aid (do the testing for) a developer who doesn't own a touchpad to implement Precision bindings?
First of all, I consider myself to be a power user, but wouldn't dare to call myself a software designer.
I opened a feature request to add support for Windows' Precision Touchpad binding in the ...
5
votes
1
answer
535
views
How exactly are drivers developed, distributed, & utilized?
If operating systems use 'drivers' to communicate with external devices,
does that then mean that OS's (like windows, linux, & osx) have to come prepackaged with drivers for every single external ...
-2
votes
1
answer
83
views
Does driver-device interaction from one operating-system environment affect the driver-device interaction on another operating-system environment? [closed]
I'm working on another tutorial: if l used a computer with an SSD-hard-drive containing an instance of Ubuntu 18.04 LTS installed with a set of Nvidia GPUs loaded with the Nvidia-CUDA toolkit but ...
3
votes
1
answer
383
views
Why non-mainstream OSes don't adopt Linux hardware drivers?
Non-mainstream OSes (Genode, BSD, Haiku, etc.) tend to have problems with drivers availability/support. Why don't they reuse Linux drivers? I would imagine they could provide some ABI compatibility ...
0
votes
1
answer
268
views
Can a driver running in kernel mode access a port directly?
Based on what I know so far, if I want to create a driver, and want the driver to send data on some port (for example: serial/parallel/USB), my driver will communicate with the port driver, and the ...
0
votes
3
answers
5k
views
Why do device drivers in Linux need to run in kernel mode?
Say I have a device that is connected to the computer through a USB port, and I created an application to communicate with this device. In this application I used the USB driver to communicate with ...
0
votes
2
answers
3k
views
Does a serial port have a device driver?
I am learning about device drivers, and based on what I know so far, if your application wants to communicate with some device, it cannot communicate directly with the port that your device is ...
8
votes
8
answers
3k
views
When is a device driver needed and when is it OK to read/write directly to the port?
I'm having a difficult time understanding when device drivers are needed, and when its fine to just talk directly to a port controller via the OS-provided serial/parallel/USB/etc. driver.
For ...
1
vote
1
answer
221
views
Relationship between apps, serial ports and device drivers
Please note: Although this question mentions Java and even a specific Java library, it really has nothing to do with Java and is really more about serial communication and device drivers. As such, I ...
4
votes
1
answer
985
views
How do you use use cases in a driver design with interrupts?
I'm writing driver-level code that runs on a microcontroller. I've described some of the design with use cases. The users in my use cases are the the other software components that use my driver. ...
12
votes
2
answers
11k
views
How exactly does a program talk to a device driver?
So I'm confused on how exactly we as the programmers talk to devices on the computer. Now I'm not talking the big ideas. I know that there are device drivers that sit atop the hardware so that ...
5
votes
1
answer
1k
views
Driving Linux input events from serial device
I'd like to build a RaspberryPi-based device that can communicate with my Linux laptop over USB (don't think it matters, but I'll be using a custom made USB dongle that has an FTDI chip on it, and my ...
0
votes
1
answer
903
views
Best way to update driver data from userspace
I have a userspace application which interacts with a kernel-space driver in a Linux environment. The driver, in this case, is an LED driver. In typical *nix fashion, the driver exposes a file in /sys/...
2
votes
1
answer
145
views
Audio driver which filters outgoing sound out of incoming
I'm sure this has been asked before but I can't seem to find anything about this, in theory, is it possible to write an audio driver which takes the incoming audio (from microphone), and compares it ...
3
votes
2
answers
2k
views
What are the benefits of a device driver when I can access the I/O registers directly?
I was interested in what modern, C-based, Linux device driver development looked like, and so I took a good gander at this excellent article.
I didn't read every single line, but perused the majority ...
-1
votes
2
answers
1k
views
What does "host" mean in "... host driver" and "... host adapter"?
From How Linux Works, by Brian Ward, I saw "SCSI Host Adapter", "SATA Host Driver", "Disk Driver (sd)", "CD/DVD Driver (sr)", "USB Host Driver", and "USB Storage Driver".
What does "host" mean in ...
2
votes
2
answers
3k
views
How does a user program access a device?
In Linux, from http://www.mulix.org/lectures/intro_to_linux_device_drivers/intro_linux_device_drivers.pdf
user programs talk with device drivers through device files
But if I understand correctly, ...
3
votes
0
answers
222
views
How would one implement communication between an input device and a PC?
I'm trying to get started on a side project using a mobile device (tablet or smartphone) as an input device to a PC. In its most simplest form, I envision using the mobile device touchscreen to ...
4
votes
1
answer
722
views
Why do some embedded projects shun cross-compiling?
As I've been getting into embedded systems I've noticed that some projects (Arch Arm and OpenBSD for example) frown upon cross compiling. What is the reasoning for this? Is a cross-compiled binary ...
3
votes
2
answers
961
views
What format is the data going to Windows print drivers?
I have been tasked with writing a print driver. I have no experience with this and have been researching it for a few days. The goal of this is to essentially write the data coming to the driver to ...
1
vote
2
answers
169
views
TotalPhase Aardvark driver's GPL license
I'm using an SPI host adapter for a project. The Aardvark from TotalPhase. And I did something crazy, I read that EULA license that everyone just clicks through.
The driver installation license ...