General overview of comm port programming.

This is a discussion on General overview of comm port programming. within the C Programming forums, part of the General Programming Boards category; Hello all, I am currently working on a generic approach to comm port programming. So far I have an implementation ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    Question General overview of comm port programming.

    Hello all, I am currently working on a generic approach to comm port programming. So far I have an implementation that connects/disconnects fine, and [c-programmers.ingnore()] a modem class derived from this basic class, encapsulating the standard Hayes AT command set and so forth, which seems to work fine so far...[\c-programmers.ingnore()] anyhow, my question is not C++ specific, I just need to get a hold of some resources on/ examples of actual data transmissions, and would appreciate any input whatsoever. Thanks.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Added to bookmarks.

    Thanks for the links, Shiro.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Comm Port - Send Packets
    By samuelmoneill in forum C Programming
    Replies: 1
    Last Post: 04-09-2009, 08:58 AM
  2. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 02:58 PM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  4. Serial Comm. through a Comm Port - WinXP to PIC
    By MoonlightKnight in forum Networking/Device Communication
    Replies: 5
    Last Post: 10-14-2006, 10:02 PM
  5. Comm Port
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 12-01-2001, 01:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21