data transfer from port

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erik D

    data transfer from port

    Hey,
    Does anyone know if there is something in C that can read the data transfer
    in the serial/paralel-port?
    Or can't that be done with C?

    THX, Erik



  • John Harrison

    #2
    Re: data transfer from port


    "Erik D" <mail@erikduist erwinkel.tmfweb .nl> wrote in message
    news:bj2nbo$51c $1@azure.qinip. net...[color=blue]
    > Hey,
    > Does anyone know if there is something in C that can read the data[/color]
    transfer[color=blue]
    > in the serial/paralel-port?
    > Or can't that be done with C?
    >
    > THX, Erik
    >[/color]

    Who knows this is a C++ group. Try news:comp.lang. c, I suspect that the
    answer will be, 'It depends on your operating system' (pretty obvious
    really), so why not try a group about whatever operating system you happen
    to be using.

    john


    Comment

    • Thomas Matthews

      #3
      Re: data transfer from port

      Erik D wrote:[color=blue]
      > Hey,
      > Does anyone know if there is something in C that can read the data transfer
      > in the serial/paralel-port?
      > Or can't that be done with C?
      >
      > THX, Erik[/color]

      Reading from the serial, parallel, USB, I2C, and Firewire ports can
      be read from C and C++ with a little help from platform specific
      functions.

      Reading from the serial port could be as easy as:
      char read_serial_por t(void)
      {
      volatile char * Uart_rx_reg = (volatile char *)(0x43000);
      return *Uart_rx_reg;
      }

      But then, it could be more complicated, especially if your
      platform doesn't have a serial port.

      By the way, some serial ports are different than the
      parallel ports.


      --
      Thomas Matthews

      C++ newsgroup welcome message:

      C++ Faq: http://www.parashift.com/c++-faq-lite
      C Faq: http://www.eskimo.com/~scs/c-faq/top.html
      alt.comp.lang.l earn.c-c++ faq:

      Other sites:
      http://www.josuttis.com -- C++ STL Library book

      Comment

      • Default User

        #4
        Re: data transfer from port

        John Harrison wrote:[color=blue]
        >
        > "Erik D" <mail@erikduist erwinkel.tmfweb .nl> wrote in message
        > news:bj2nbo$51c $1@azure.qinip. net...[color=green]
        > > Hey,
        > > Does anyone know if there is something in C that can read the data[/color]
        > transfer[color=green]
        > > in the serial/paralel-port?[/color][/color]
        [color=blue]
        > Who knows this is a C++ group. Try news:comp.lang. c, I suspect that the
        > answer will be, 'It depends on your operating system' (pretty obvious
        > really), so why not try a group about whatever operating system you happen
        > to be using.[/color]


        In fact, he already posted there and got pretty much that response.
        Demonstrates an appalling lack of usenet skills, as he multiposted to
        groups, posted in the wrong groups, did not lurk for the required time,
        blah blah blah.




        Brian Rodenborn

        Comment

        Working...