Thread: Conceptual Question, what does, "Endpoint Register" mean?

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    21

    Conceptual Question, what does, "Endpoint Register" mean?

    See the link below, page 12 for reference to my question. Below is the text where my question came from. I am working on a STM32F1 Micro, getting the USB up and running. JUST started this part of the project and have never done anything like this before. I did not find anything on this subject by searching on google, does anybody know what it means?
    Thanks!

    Endpoint register functions
    All operations with endpoint registers can be obtained with the SetENDPOINT and
    GetENDPOINT functions. However, many functions are derived from these to offer the
    advantage of a direct action on a specific field.
    a) Endpoint set/get value
    SetENDPOINT : void SetENDPOINT(uint8_t bEpNum,uint16_t wRegValue)
    bEpNum = Endpoint number, wRegValue = Value to write
    GetENDPOINT : uint16_t GetENDPOINT(uint8_t bEpNum)
    bEpNum = Endpoint number
    return value: the endpoint register value
    b) Endpoint TYPE field
    The EP_TYPE field of the endpoint register can assume the defined values below:
    #define EP_BULK (0x0000) // Endpoint BULK
    #define EP_CONTROL (0x0200) // Endpoint CONTROL
    #define EP_ISOCHRNOUS (0x0400) // Endpoint ISOCHRONOUS
    #define EP_INTERRUPT (0x0600) // Endpoint INTERRUPT
    SetEPType : void SetEPType (uint8_t bEpNum, uint16_t wtype)
    bEpNum = Endpoint number, wtype = Endpoint type (value from the
    above define’s)
    GetEPType : uint16_t GetEPType (uint8_t bEpNum)
    bEpNum = Endpoint number
    return value: a value from the above define’s

    http://www.st.com/internet/com/TECHN...CD00158241.pdf

  2. #2
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    It's a register (a storage place for a single value inside a processor itself NOT in normal RAM) that's present in a USB endpoint.

    Basically, it's saying that you can modify the bits of the register to turn on/off certain things related to the USB endpoint.

    "Endpoint register" = "register associated with the endpoint".

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 08-19-2012, 06:15 AM
  2. Conceptual ambiguity "function prototype"
    By password636 in forum C Programming
    Replies: 4
    Last Post: 04-02-2009, 12:48 PM
  3. Replies: 46
    Last Post: 08-24-2007, 04:52 PM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM