Search found 12 matches
- Mon May 02, 2011 4:53 am
- Forum: SUB-20 General Discussion
- Topic: SPI Master communication with SPI Slave
- Replies: 1
- Views: 13364
SPI Master communication with SPI Slave
Hello, I have two SUB-20 devices, and two different programs controlling them. One configured as SPI Master with the following configuration "sub_spi_config(fd, SPI_ENABLE|SPI_CPOL_RISE|SPI_SMPL_SETUP|SPI_MSB_FIRST|SPI_CLK_4MHZ,0)" and the other SUB-20 device as SPI Slave FIFO configured as "rc = su...
- Thu Apr 28, 2011 9:31 am
- Forum: SUB-20 General Discussion
- Topic: Identifying multiple Sub-20s
- Replies: 4
- Views: 22353
Re: Identifying multiple Sub-20s
Hi, I have two sub-20s connected to my computer. So I stored its serial number in a file and while running the program, I open the device and get its serial number and check it with the file, and if it is same continues, otherwise closes that device and continues searching for the next device. And I...
- Fri Apr 08, 2011 8:50 am
- Forum: SUB-20 General Discussion
- Topic: SUB-20 board LED functions
- Replies: 2
- Views: 15606
SUB-20 board LED functions
When does the yellow LED blink or glow.? I mean under what operations does the yellow LED is ON.?
- Sun Mar 20, 2011 9:01 am
- Forum: SUB-20 General Discussion
- Topic: GPIO write
- Replies: 2
- Views: 15190
Re: GPIO write
Thank you for the reply



- Sun Mar 20, 2011 7:34 am
- Forum: SUB-20 General Discussion
- Topic: GPIO write
- Replies: 2
- Views: 15190
GPIO write
I am using sub_gpio_write() for setting the values of pins. But how can I set the individual pins without affecting the status of other pins using this function?
- Fri Mar 18, 2011 8:47 am
- Forum: SUB-20 General Discussion
- Topic: Identifying multiple Sub-20s
- Replies: 4
- Views: 22353
Re: Identifying multiple Sub-20s
Thank you for the reply:):):)
- Fri Mar 18, 2011 5:15 am
- Forum: SUB-20 General Discussion
- Topic: Identifying multiple Sub-20s
- Replies: 4
- Views: 22353
Identifying multiple Sub-20s
My computer is connected to two or more sub-20 devices. One of the device is configured as master and the other in slave mode. We are doing SPI as well as GPIO transactions. How do I identify which device descriptor corresponds to which device. Please help
- Fri Mar 18, 2011 5:10 am
- Forum: SUB-20 General Discussion
- Topic: GPIO read
- Replies: 2
- Views: 16897
Re: GPIO read
Thank you so much for the reply 

- Thu Mar 17, 2011 11:30 am
- Forum: SUB-20 General Discussion
- Topic: GPIO read
- Replies: 2
- Views: 16897
GPIO read
I am using sub_gpio_read() function to read the status of GPIO pins. But it returns a hex value. If I want the individual pin status how do i get it? Basically I want to poll individual pins and want to know its value but since the status obtained is in hex how do i get the individual pin status..?
- Tue Feb 08, 2011 5:36 am
- Forum: SUB-20 General Discussion
- Topic: Is the SUB-20 libraryTHREAD SAFE ...??
- Replies: 4
- Views: 18544
Re: Is the SUB-20 libraryTHREAD SAFE ...??
thanks for the info. and the sourceforge document it is of great help.