Thread: understanding serial driver code

  1. #1
    Registered User
    Join Date
    Jan 2017
    Posts
    1

    understanding serial driver code

    Hi all, I have been moving forward in my training and have come to using a serial driver which the code is a little hard to use the serial.c and serial.h files. There is a lot of typedef pointers to supplement additional comports which is confusing when I try tfigure out how to call the functions and how to list the prameters correctly. Function pointers are used to make it more portable I believe which at my level of training
    makes for confusion. I would like to discuss how to work the function calls into my main so i understand the typedef pointers to functions. I do understand most of the typedefs and how the aliases work but it is still confusing when calling these functions. Any assistance would be helpful. Thanks so much for your time.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Perhaps this will help with all matters on function pointers.
    The Function Pointer Tutorials - Syntax
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help for code menu driver
    By sete in forum C Programming
    Replies: 2
    Last Post: 01-07-2013, 10:52 PM
  2. Serial Driver is not transmitting
    By overmetal61 in forum C Programming
    Replies: 2
    Last Post: 10-20-2012, 02:04 PM
  3. hi how to check my serial port is intrupt driver or poll driver?
    By nkrao123@gmail. in forum Networking/Device Communication
    Replies: 5
    Last Post: 09-19-2011, 11:20 PM
  4. using a driver function to test my code??
    By tommy69 in forum C Programming
    Replies: 24
    Last Post: 03-20-2004, 07:12 PM
  5. rs232 serial driver
    By GreyMattr in forum C Programming
    Replies: 2
    Last Post: 03-20-2002, 12:55 PM

Tags for this Thread