Search found 9 matches

by ddeham
Mon Jul 22, 2013 7:53 am
Forum: NetBurner Software
Topic: How do I set the size of an enumerated type?
Replies: 8
Views: 6842

Re: How do I set the size of an enumerated type?

I just couldn't let this go for whatever weird reason. Try this: enum __attribute__((packed)) ModemType{HUGHES = 0x01,TACHYON ,IDIRECT ,LINKSTAR,GENERIC}; That worked! Thanks! I was using it as a typedef, so I just added __attribute__ ((packed)) to the typedef, and now it is one byte. typedef enum ...
by ddeham
Fri Jul 19, 2013 2:26 pm
Forum: NetBurner Software
Topic: How do I set the size of an enumerated type?
Replies: 8
Views: 6842

Re: How do I set the size of an enumerated type?

If you don't go with the default type of int for enum's you will have problems, at least with all the compilers I have used. Why do you have to have it as a byte? I don't know about DevC++ but I just tried it in Eclipse and the -fshort-enums works. It took the sizeof a standard C++ enum from 4 to 1...
by ddeham
Fri Jul 19, 2013 12:09 pm
Forum: NetBurner Software
Topic: How do I set the size of an enumerated type?
Replies: 8
Views: 6842

How do I set the size of an enumerated type?

Hi, When I run this C program compiled with Dev-C++ 4.9.9.2, it gives the following output: #include <stdio.h> #include <stdlib.h> #pragma enum=1 typedef enum {HUGHES = 0x01,TACHYON = 0x02,IDIRECT = 0x03,LINKSTAR = 0x04,GENERIC = 0x05} ModemBrand_Type; int main(int argc, char *argv[]) { ModemBrand_T...
by ddeham
Mon Apr 22, 2013 9:34 am
Forum: NetBurner Software
Topic: mod54415 EFFS_MULTIPLE_MMC Factory Example
Replies: 5
Views: 3620

Re: mod54415 EFFS_MULTIPLE_MMC Factory Example

I had the same problem. The two archive files that shipped with tools release 2.6.2 and 2.6.1 are bogus (non-working): sfnfatfile.a and lfnfatfile.a. If you ran the batch file to use long file names or tried to revert back to short names, you overwrote the good file fatfile.a, and you will have to r...
by ddeham
Wed Nov 21, 2012 7:55 am
Forum: NetBurner Hardware
Topic: MOD54415 DAC Analog Output
Replies: 8
Views: 6287

Re: MOD54415 DAC Analog Output

Has anyone figured out how to use the DAC to output a waveform? On page 30-12 of the Freescale Manual it says: "program a timer module to pulse SYNC_IN" [...] "4. Set DACn_CR[DACOUT] and clear DACn_CR[UP, PDN]." How do I set the timer to toggle SYNC_IN? How do I set DACn_CR[DACOU...
by ddeham
Tue Sep 27, 2011 9:06 am
Forum: NetBurner Software
Topic: HTTP GET, Content-Encoding: gzip
Replies: 1
Views: 2316

HTTP GET, Content-Encoding: gzip

Hi, I need to download a web page from another embedded device, and parse some data from that page. I tried using similar code that has worked before. However, this particular device sends out the web pages encoded with gzip. Here's the http header: HTTP/1.0 200 OK Date: Wed, 28 Jun 2006 13:30:04 GM...
by ddeham
Wed Sep 21, 2011 2:25 pm
Forum: Off-Topic
Topic: Spamming getting worse
Replies: 17
Views: 17665

Re: Spamming getting worse

tod wrote:WAIT A MINUTE, what if I get a toenail fungus on my genital warts from playing too much golf? :oops:
My problem is that the HAIR REMOVER worked too well and now I need the HAIR REGROWTH treatment! I tried the spray paint hair on my head but it doesn't look very natural, despite the claims.
by ddeham
Mon Jan 03, 2011 1:42 am
Forum: Application Notes and Design Ideas
Topic: Dual Ethernet Ports on the MOD5282
Replies: 2
Views: 7090

Dual Ethernet Ports on the MOD5282

Hi, On the old Netburner Yahoo mailing list, "frunchy" asked if anyone had added a second ethernet port to the MOD5234. Paul Breed responded that there was an app note in the works, but it hadn't been published yet. That was in November of 2007. Has the app note been published yet? Will wi...
by ddeham
Tue Oct 27, 2009 5:46 pm
Forum: NetBurner Hardware
Topic: i2CReadBuf trouble
Replies: 1
Views: 2568

i2CReadBuf trouble

Hi, I have a Netburner Mod5282. How do I use the i2CReadBuf and i2CSendBuf routines with the CX24116 chip? Basically, The I CX24116 has 256 registers, and I need to be able to read and write to one or more registers on the device. I am using Multi-master mode, and I understand that I need to call i2...