Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

UM0290 Datasheet(PDF) 8 Page - STMicroelectronics

Part # UM0290
Description  This document presents a description
PDF  76 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0290 Datasheet(HTML) 8 Page - STMicroelectronics

Back Button UM0290 Datasheet HTML 4Page - STMicroelectronics UM0290 Datasheet HTML 5Page - STMicroelectronics UM0290 Datasheet HTML 6Page - STMicroelectronics UM0290 Datasheet HTML 7Page - STMicroelectronics UM0290 Datasheet HTML 8Page - STMicroelectronics UM0290 Datasheet HTML 9Page - STMicroelectronics UM0290 Datasheet HTML 10Page - STMicroelectronics UM0290 Datasheet HTML 11Page - STMicroelectronics UM0290 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 76 page
background image
STR7/STR9 USB firmware library
UM0290
8/76
2.
Endpoint register functions: All operations related to endpoint registers can be
performed with the SetENDPOINT and GetENDPOINT functions. However, several
functions are derived from these to permit direct action on a specific field.
a)
Endpoint set/get value
SetENDPOINT
:
void SetENDPOINT(u8 bEpNum,u16 wRegValue)
bEpNum = Endpoint number, wRegValue = Value to write
GetENDPOINT
:
u16 GetENDPOINT(u8 bEpNum)
bEpNum = Endpoint number
return value: the endpoint register value
b)
Endpoint TYPE field
The EP_TYPE field of the endpoint register could have these defined values:
#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 (u8 bEpNum, u16 wtype)
bEpNum = Endpoint number, wtype = Endpoint type (value from the
above define’s)
GetEPType
:
u16 GetEPType (u8 bEpNum)
bEpNum = Endpoint number
return value: a value from the above define’s
c)
Endpoint STATUS field
The STAT_TX / STAT_RX fields of the endpoint register could have these defined
values:
#define EP_TX_DIS
(0x0000)
// Endpoint TX DISabled
#define EP_TX_STALL
(0x0010)
// Endpoint TX STALLed
#define EP_TX_NAK
(0x0020)
// Endpoint TX NAKed
#define EP_TX_VALID
(0x0030)
// Endpoint TX VALID
#define EP_RX_DIS
(0x0000)
// Endpoint RX DISabled
#define EP_RX_STALL
(0x1000)
// Endpoint RX STALLed
#define EP_RX_NAK
(0x2000)
// Endpoint RX NAKed
#define EP_RX_VALID
(0x3000)
// Endpoint RX VALID
SetEPTxStatus
:
void SetEPTxStatus(u8 bEpNum,u16 wState)
SetEPRxStatus
:
void SetEPRxStatus(u8 bEpNum,u16 wState)
bEpNum = Endpoint number, wState = a value from the above define’s
GetEPTxStatus
:
u16 GetEPTxStatus(u8 bEpNum)
GetEPRxStatus
:
u16 GetEPRxStatus(u8 bEpNum)
bEpNum = endpoint number
return value:a value from the above define’s
d)
Endpoint KIND field
SetEP_KIND
:
void SetEP_KIND(u8 bEpNum)
ClearEP_KIND
:
void ClearEP_KIND(u8 bEpNum)
bEpNum = endpoint number
Set_Status_Out
:
void Set_Status_Out(u8 bEpNum)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com