你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

【经验分享】STM32 SPI相关函数和类型

[复制链接]
STMCU小助手 发布时间:2022-6-16 18:00
01. SPI简介
% f& d% F% a0 e) o8 [+ aSPI 是英语 Serial Peripheral interface 的缩写,顾名思义就是串行外围设备接口。是 Motorola首先在其 MC68HCXX 系列处理器上定义的。SPI 接口主要应用在 EEPROM,FLASH,实时时钟,AD 转换器,还有数字信号处理器和数字信号解码器之间。SPI,是一种高速的,全双工,同步的通信总线,并且在芯片的管脚上只占用四根线,节约了芯片的管脚,同时为 PCB 的布局上节省空间,提供方便,正是出于这种简单易用的特性,现在越来越多的芯片集成了这种通信协议,STM32F4 也有 SPI 接口。) l) w: X. d; E5 ~! R

. _0 x& ]. v7 _$ y: ]; O0 N9 H- {5 C02. 相关类型
6 m7 j7 G8 |. e8 }- qSPI Init structure definition
! O- R$ \9 W2 d5 J, T" R2 ?1 \: L/ F9 Z; q! ]2 A
  1. /** 5 b; y1 P- b) E: e& D  C1 \5 h( Z
  2.   * @brief  SPI Init structure definition    d/ F% @3 V. b  B
  3.   */
    : B; W  P& e# P
  4. 2 j+ R  @/ x2 a
  5. typedef struct
    & m& f: G" T0 g% k/ u
  6. {. ?6 N0 p6 l" ^: U  @: q0 z- j
  7.   uint16_t SPI_Direction;           /*!< Specifies the SPI unidirectional or bidirectional data mode.+ n! y8 ~2 E! l8 B) H" W' k8 n; q
  8.                                          This parameter can be a value of @ref SPI_data_direction */
    4 V$ k# u9 \1 n( ^" A3 f
  9. 7 k1 v) V! w7 `" o* r$ h# M# {
  10.   uint16_t SPI_Mode;                /*!< Specifies the SPI operating mode.# n* t) I' ~: S6 n+ t% y: I5 W6 h
  11.                                          This parameter can be a value of @ref SPI_mode */( z) m  A1 V* C8 |8 F: X3 K; m
  12. $ V. J9 A) l( n0 e
  13.   uint16_t SPI_DataSize;            /*!< Specifies the SPI data size.
    % o, @* G/ `+ d3 n0 k" i
  14.                                          This parameter can be a value of @ref SPI_data_size */& i5 j& F6 Y4 K, u

  15. # u$ @/ a1 L% u% x0 Q$ U& }2 J6 d
  16.   uint16_t SPI_CPOL;                /*!< Specifies the serial clock steady state.- A/ ?; C. L( w! V6 D
  17.                                          This parameter can be a value of @ref SPI_Clock_Polarity *// g$ j2 Q) P8 z4 r9 W/ |

  18. * u7 P/ ~* g/ c6 s" n, V
  19.   uint16_t SPI_CPHA;                /*!< Specifies the clock active edge for the bit capture.
    ! s6 \, c3 w+ T: N# L5 e1 E" V/ }
  20.                                          This parameter can be a value of @ref SPI_Clock_Phase */
    8 W, A2 J. P) ]  e

  21. - W* d9 ~4 t* ?; e: G3 d2 X
  22.   uint16_t SPI_NSS;                 /*!< Specifies whether the NSS signal is managed by
    5 t- l! R! Y8 x' Z0 T) {
  23.                                          hardware (NSS pin) or by software using the SSI bit.
    & g1 c7 D/ L1 t0 m. T
  24.                                          This parameter can be a value of @ref SPI_Slave_Select_management */3 Y, g# P! z' ?; c
  25. 7 a1 b0 t* d5 P3 d
  26.   uint16_t SPI_BaudRatePrescaler;   /*!< Specifies the Baud Rate prescaler value which will be- l+ Z6 p) L0 E, Z* S4 N! }
  27.                                          used to configure the transmit and receive SCK clock.
    6 c' |& Q* K7 s/ I" b
  28.                                          This parameter can be a value of @ref SPI_BaudRate_Prescaler
    - U" Q3 r9 K/ {$ A$ K. m/ ~+ T: W
  29.                                          @note The communication clock is derived from the master
    0 b) d; y" n+ S# J
  30.                                                clock. The slave clock does not need to be set. */
    ! B7 I. [, G, y: c( |# P
  31. 0 h0 F: ^/ P. C* @  W
  32.   uint16_t SPI_FirstBit;            /*!< Specifies whether data transfers start from MSB or LSB bit.
    4 @/ V( P2 T; U+ a  c. P( ]  F% O
  33.                                          This parameter can be a value of @ref SPI_MSB_LSB_transmission */
    % b, u% K6 O0 P2 ]8 }
  34. 7 U3 W  ?8 Y1 y
  35.   uint16_t SPI_CRCPolynomial;       /*!< Specifies the polynomial used for the CRC calculation. */
    * N0 ~2 Z) g# Q! S6 _' |
  36. }SPI_InitTypeDef;
复制代码

+ O' n0 X  o! ?2 i1 @9 c  QI2S Init structure definition9 m: s# ~! \; ?5 L5 e
8 r' \/ F+ n- C( U
  1. /**
    / {& h( _6 W) A$ V/ o
  2.   * @brief  I2S Init structure definition  ' O/ I/ y3 i0 O' g3 ?6 w5 S
  3.   *// T8 o* B1 e, p- j& O  a  t  N! U0 y

  4. 7 z: F8 t! z1 N- Z
  5. typedef struct
    1 r. a  ~4 y$ `. k6 e
  6. {
    ! `7 ~! [( R9 }  f8 ~+ e
  7. + P% S9 r; @  F8 q# p
  8.   uint16_t I2S_Mode;         /*!< Specifies the I2S operating mode.
    2 k) s6 f! J4 B* ^/ y1 ]( T
  9.                                   This parameter can be a value of @ref I2S_Mode */* {0 a; I, j) s. E2 C; ~

  10. ) {; H3 `4 G$ _6 d- i3 {' Q
  11.   uint16_t I2S_Standard;     /*!< Specifies the standard used for the I2S communication.
    % H3 U, }" v$ t# r$ D( h
  12.                                   This parameter can be a value of @ref I2S_Standard */
    ; j: g/ O! c  i/ o+ l9 J( e0 }1 H1 p

  13. + {3 z4 ]6 }) c- z1 O. R2 _
  14.   uint16_t I2S_DataFormat;   /*!< Specifies the data format for the I2S communication.
    3 n& E8 p' K& a& R! }# C: t- {
  15.                                   This parameter can be a value of @ref I2S_Data_Format */
    : Z+ E! w! h4 Q$ }7 o. o
  16. 9 C( a4 Q) S5 U) i! C3 k5 t
  17.   uint16_t I2S_MCLKOutput;   /*!< Specifies whether the I2S MCLK output is enabled or not.
    . p" h$ x% m1 o. l+ g
  18.                                   This parameter can be a value of @ref I2S_MCLK_Output */
    - f& N, }6 B. T" A3 q1 ^9 f0 {

  19. 2 }! m4 X; S- A$ c
  20.   uint32_t I2S_AudioFreq;    /*!< Specifies the frequency selected for the I2S communication.
    $ f9 q+ u8 ~; R! n8 l& [8 x
  21.                                   This parameter can be a value of @ref I2S_Audio_Frequency */
    9 S2 z3 l' @1 t1 P+ |
  22. 9 \1 J# H' r7 {
  23.   uint16_t I2S_CPOL;         /*!< Specifies the idle state of the I2S clock.1 m$ @9 R/ S: P# X
  24.                                   This parameter can be a value of @ref I2S_Clock_Polarity */
    8 ]: z' M% c5 b! C
  25. }I2S_InitTypeDef;
复制代码

+ `0 P% Y+ g. u$ Q8 A5 uSPI_Exported_Constants$ H5 m' h! `( n2 y$ \$ `
. o+ ^2 ~  F2 n( |- u: ?3 q
  1. /** @defgroup SPI_Exported_Constants
    5 _0 X2 E) R+ t7 l" B
  2.   * @{
    . D2 {* ]5 S3 D- M6 H0 I
  3.   */
    0 N" X' V/ C  h9 `
  4. 7 k6 _; i2 R" j( L( }
  5. #define IS_SPI_ALL_PERIPH(PERIPH) (((PERIPH) == SPI1) || \
    6 n8 b( E% u6 J' c2 S) K9 j6 l
  6.                                    ((PERIPH) == SPI2) || \$ D& i3 S9 h8 b, X: h7 ?! S0 n
  7.                                    ((PERIPH) == SPI3) || \$ y: m" E/ T& m4 K& [* r, N
  8.                                    ((PERIPH) == SPI4) || \
    9 x7 G* T+ @8 O9 q1 k
  9.                                    ((PERIPH) == SPI5) || \
    5 w* r# v  a$ F2 I, s' j; F
  10.                                    ((PERIPH) == SPI6))2 S5 f& J2 [, x+ j  f/ _
  11. % z; k" k/ v8 l$ Z  a3 o
  12. #define IS_SPI_ALL_PERIPH_EXT(PERIPH) (((PERIPH) == SPI1)    || \  v9 f: G# c( ^: h
  13.                                        ((PERIPH) == SPI2)    || \0 [0 _7 w! v! s6 @0 f; S0 U
  14.                                        ((PERIPH) == SPI3)    || \% l6 x  S4 x3 R9 L# H
  15.                                        ((PERIPH) == SPI4)    || \
    8 }+ _8 g1 \+ b
  16.                                        ((PERIPH) == SPI5)    || \, l. p! @& o( a" r$ }
  17.                                        ((PERIPH) == SPI6)    || \
    9 X% D- M1 f' \: R1 t7 v
  18.                                        ((PERIPH) == I2S2ext) || \) f4 v( I% z8 I
  19.                                        ((PERIPH) == I2S3ext))" f! b% @. y3 a$ z) I, J3 Y

  20. % T& I1 D* U- j  K6 y, H. s' m7 P
  21. #define IS_SPI_23_PERIPH(PERIPH)  (((PERIPH) == SPI2) || \
    - a4 v- [: u" K
  22.                                    ((PERIPH) == SPI3))
    4 f/ z; |3 m5 v% \) U

  23. ! a" C% j4 _" r& M5 U' s
  24. #define IS_SPI_23_PERIPH_EXT(PERIPH)  (((PERIPH) == SPI2)    || \
    7 K+ a( C: C1 w0 }3 a4 ]6 y+ P& ]  u
  25.                                        ((PERIPH) == SPI3)    || \4 p' S( W- Y8 C4 l* x5 |' Y
  26.                                        ((PERIPH) == I2S2ext) || \
    & i: p' C8 _* Y
  27.                                        ((PERIPH) == I2S3ext))7 a$ x6 y: a" n/ G* G- U
  28. + ]5 r% t* o; V' S3 x+ P
  29. #define IS_I2S_EXT_PERIPH(PERIPH)  (((PERIPH) == I2S2ext) || \( c2 j8 n6 w; c/ w" `! O" M
  30.                                     ((PERIPH) == I2S3ext))
复制代码

6 I  E$ q3 n/ K' _$ ^1 s/ JSPI_data_direction
; V: k( `" O4 t+ I
' Z8 s1 M. p7 d# ~" I7 U
  1. /** @defgroup SPI_data_direction 6 X: a! r* w1 e7 w7 s  `
  2.   * @{) m$ ^7 x1 r1 N8 D: Y3 s
  3.   */
    * i5 t" d+ I( w
  4. 2 v" ^. D$ Y6 N. F' B
  5. #define SPI_Direction_2Lines_FullDuplex ((uint16_t)0x0000)
    0 a2 Q# P) t6 Y/ ^2 `8 p
  6. #define SPI_Direction_2Lines_RxOnly     ((uint16_t)0x0400)# h) y6 e5 S0 T% J& ]8 S7 b( j
  7. #define SPI_Direction_1Line_Rx          ((uint16_t)0x8000)8 C9 i8 k  R- c/ K2 ?4 v! A% {5 Y
  8. #define SPI_Direction_1Line_Tx          ((uint16_t)0xC000), E1 N4 i% M8 \; P, W! U
  9. #define IS_SPI_DIRECTION_MODE(MODE) (((MODE) == SPI_Direction_2Lines_FullDuplex) || \1 i( b9 q. t. c, M- ?, ]
  10.                                      ((MODE) == SPI_Direction_2Lines_RxOnly) || \
    0 q! }5 @( J% N
  11.                                      ((MODE) == SPI_Direction_1Line_Rx) || \
    % j* _* H+ C6 q& \' e/ U2 J
  12.                                      ((MODE) == SPI_Direction_1Line_Tx))
复制代码

. ^. Q/ D  V" l% ?9 {& D9 D2 H3 N& RSPI_mode$ I4 u# [7 H3 R" F7 x' f7 \

- ~" k( y5 h, L9 [7 {9 u
  1. /** @defgroup SPI_mode 0 Q# C% [6 z" k% e( v
  2.   * @{
    / h& U8 g. P% q
  3.   */
    " j# J0 D" ?! v2 c: r9 D' ]

  4.   y! b- \" N# N
  5. #define SPI_Mode_Master                 ((uint16_t)0x0104)
    5 `, G+ ~0 b, T& K0 x# y
  6. #define SPI_Mode_Slave                  ((uint16_t)0x0000)% h2 P/ |* F/ V3 X
  7. #define IS_SPI_MODE(MODE) (((MODE) == SPI_Mode_Master) || \
    " k1 w# z8 D: C& {
  8.                            ((MODE) == SPI_Mode_Slave))
复制代码
' i0 V9 o0 R' ?
SPI_data_size6 C7 `3 u0 x7 w+ {) C; \- E4 g

9 p" j9 R; j3 }
  1. /** @defgroup SPI_data_size
    ' {+ m2 j& b$ \
  2.   * @{. u. Z: f# K9 V+ w. P# D
  3.   */
    , b+ e* i9 [) K6 R; b
  4. $ X' q" S2 h5 l
  5. #define SPI_DataSize_16b                ((uint16_t)0x0800)  s! R( M" N# A; q$ S, P9 v1 t: D
  6. #define SPI_DataSize_8b                 ((uint16_t)0x0000)+ b; L+ ]$ \: E2 t. ?  P: |
  7. #define IS_SPI_DATASIZE(DATASIZE) (((DATASIZE) == SPI_DataSize_16b) || \
    - y5 K4 x6 d! @4 @6 q9 f2 {
  8.                                    ((DATASIZE) == SPI_DataSize_8b))
复制代码
& ]' ?9 i* G! V. Z" o: r' Z1 r
SPI_Clock_Polarity2 V' F1 P5 R$ |
. o" I) k; Y; o0 D0 I
  1. /** @defgroup SPI_Clock_Polarity
    5 X' ~: k, h' L
  2.   * @{5 U2 ^& T7 @! o; I5 N
  3.   */
    ( L' Y* @) J" a6 V" v

  4. - W2 m. U& u+ w6 k
  5. #define SPI_CPOL_Low                    ((uint16_t)0x0000)
    2 V+ x* ^; s2 \8 w. y
  6. #define SPI_CPOL_High                   ((uint16_t)0x0002)
    / n0 y+ z1 Z( e8 ]
  7. #define IS_SPI_CPOL(CPOL) (((CPOL) == SPI_CPOL_Low) || \* [0 m* n+ E6 f( {6 |/ j
  8.                            ((CPOL) == SPI_CPOL_High))
复制代码
( A/ a" \8 L3 M8 v0 ^* l. `0 q
SPI_Clock_Phase* `0 ]0 S& j+ r" n( Z- A+ b) I: |' Q3 Y2 y0 P

- q$ _; V. R2 i6 B+ L+ n. x1 |  T
  1. /** @defgroup SPI_Clock_Phase
    % C% }( b) O% s: N1 I4 F7 j0 @( v
  2.   * @{" \; W& |7 O& R9 V. \
  3.   */
    . `$ N" a& N7 i1 V: W

  4. & ^% U) m7 _9 I/ F
  5. #define SPI_CPHA_1Edge                  ((uint16_t)0x0000)9 {; X8 R; W3 r: H9 P
  6. #define SPI_CPHA_2Edge                  ((uint16_t)0x0001)
    ' A8 @) ~, l) d/ H  @7 H. a
  7. #define IS_SPI_CPHA(CPHA) (((CPHA) == SPI_CPHA_1Edge) || \/ S# e9 J; O: e. R+ c
  8.                            ((CPHA) == SPI_CPHA_2Edge))
复制代码

+ E! q8 d* e- j8 W2 T. kSPI_Slave_Select_management* o2 j3 U& f+ P7 j) k& y% g+ b: @
, d5 q( }: ?: h  f) j
  1. /** @defgroup SPI_Slave_Select_management
    " ~8 J+ V, \- v& Y
  2.   * @{% z6 C. W  Q- ]& Q; A! ?6 R
  3.   */
    . S& v0 J5 N* n/ V0 f, \! \+ t
  4. + q) X9 ?3 g  [0 j. Z0 S
  5. #define SPI_NSS_Soft                    ((uint16_t)0x0200)
    . H( Q' b. ~9 V/ E% }& b3 x" q* C
  6. #define SPI_NSS_Hard                    ((uint16_t)0x0000)+ e0 H$ }- t8 W1 }4 {
  7. #define IS_SPI_NSS(NSS) (((NSS) == SPI_NSS_Soft) || \! r1 k+ g- Q( J' U# t: a4 D
  8.                          ((NSS) == SPI_NSS_Hard))
复制代码

- y7 W: o8 c8 E- C$ HSPI_BaudRate_Prescaler6 C, e& @; P+ ]' L. e

# i$ y2 I% x, R" @
  1. /** @defgroup SPI_BaudRate_Prescaler - ]& d+ g* c7 x- P6 y
  2.   * @{2 y* K5 Y( p& Q8 s9 [* Y& U4 z
  3.   */
    4 ]: D' K7 `. i: p/ d4 W2 _" D
  4.   g' V" o  c8 X1 N9 N' K
  5. #define SPI_BaudRatePrescaler_2         ((uint16_t)0x0000)3 m5 w4 w4 b' K; C+ O2 Q
  6. #define SPI_BaudRatePrescaler_4         ((uint16_t)0x0008)4 M( m/ ~4 `, `
  7. #define SPI_BaudRatePrescaler_8         ((uint16_t)0x0010)2 F, ?$ v( {! M: k
  8. #define SPI_BaudRatePrescaler_16        ((uint16_t)0x0018)# ]" y- j" V" U8 \6 }( A1 w
  9. #define SPI_BaudRatePrescaler_32        ((uint16_t)0x0020)
    $ _: h/ B, Y5 B' N/ L7 d- j' Y: d
  10. #define SPI_BaudRatePrescaler_64        ((uint16_t)0x0028)
    + B5 f0 }# Q( n0 g  Q' Q2 t. o4 N
  11. #define SPI_BaudRatePrescaler_128       ((uint16_t)0x0030): M8 i- `/ E# R$ u( {8 x& v
  12. #define SPI_BaudRatePrescaler_256       ((uint16_t)0x0038)
    & D5 B' K% Q: q# W# E1 V
  13. #define IS_SPI_BAUDRATE_PRESCALER(PRESCALER) (((PRESCALER) == SPI_BaudRatePrescaler_2) || \/ k1 B% G5 K3 }! C3 W- `
  14.                                               ((PRESCALER) == SPI_BaudRatePrescaler_4) || \' E7 R/ m0 q* K- r! G. S+ C
  15.                                               ((PRESCALER) == SPI_BaudRatePrescaler_8) || \5 f: }7 P4 D+ O7 C
  16.                                               ((PRESCALER) == SPI_BaudRatePrescaler_16) || \
    , h; J) x- {; O: K- ~' M7 E
  17.                                               ((PRESCALER) == SPI_BaudRatePrescaler_32) || \8 S  J! R& E5 P2 t8 `
  18.                                               ((PRESCALER) == SPI_BaudRatePrescaler_64) || \- a7 G6 O0 [. J' m
  19.                                               ((PRESCALER) == SPI_BaudRatePrescaler_128) || \
    3 V# Z, }& U/ m$ p5 j7 N/ u
  20.                                               ((PRESCALER) == SPI_BaudRatePrescaler_256))4 b; h; ^; E! \0 ~, Q1 P
复制代码
) s' J  k( M) i* y* |3 f
SPI_MSB_LSB_transmission$ [0 A! H5 t% k$ X0 A# D6 S

3 W, m7 H) R7 h1 p
  1. /** @defgroup SPI_MSB_LSB_transmission
    ) c& O9 w3 H1 ~& Y) B
  2.   * @{/ }# h1 |* j3 ~, u  @
  3.   */
    * U3 x! E: M% S

  4. 5 ^6 B6 {) W5 t3 y
  5. #define SPI_FirstBit_MSB                ((uint16_t)0x0000)
    ) F7 F! I. H; l7 z3 y1 A
  6. #define SPI_FirstBit_LSB                ((uint16_t)0x0080)) |% O4 N5 u7 i; L
  7. #define IS_SPI_FIRST_BIT(BIT) (((BIT) == SPI_FirstBit_MSB) || \
    2 I/ M# V: B& H$ k# B6 s
  8.                                ((BIT) == SPI_FirstBit_LSB))
复制代码
  _2 }- O6 L: \: p2 C1 O2 B
SPI_I2S_Mode4 a- s) M% q& I* i- b* U8 k# o

7 z$ j# b- A$ i: m( G& y: a( J
  1. /** @defgroup SPI_I2S_Mode
    & v* D9 y/ e' ?
  2.   * @{
    ' z4 A1 O1 i. J: C- P
  3.   */
    6 [, x6 X' ~4 {+ }

  4. $ v* a% ]3 W& l- Q$ C( B
  5. #define I2S_Mode_SlaveTx                ((uint16_t)0x0000)
    4 C2 Q; H3 \2 m( z. _7 G* u
  6. #define I2S_Mode_SlaveRx                ((uint16_t)0x0100). [& S  ?/ j. z% n/ X- i3 O
  7. #define I2S_Mode_MasterTx               ((uint16_t)0x0200)
    5 z( Y/ v8 K: M4 p5 h) b2 N
  8. #define I2S_Mode_MasterRx               ((uint16_t)0x0300)5 n1 J) @; M  C* f5 R# P
  9. #define IS_I2S_MODE(MODE) (((MODE) == I2S_Mode_SlaveTx) || \
    $ u8 r7 T& L5 [' q
  10.                            ((MODE) == I2S_Mode_SlaveRx) || \
    0 ~7 j8 i) [6 H; c+ U
  11.                            ((MODE) == I2S_Mode_MasterTx)|| \
    : I9 [; [5 ~- X6 ^
  12.                            ((MODE) == I2S_Mode_MasterRx))
复制代码
; p3 w4 a6 x/ i4 {* V$ s% e4 u9 y
SPI_I2S_Standard
9 x# [0 D* i6 P- c% C1 x
8 |' ?, P3 b$ w0 b- i. C

  1. ' a2 D" o( h. H- Y$ Z* G
  2. /** @defgroup SPI_I2S_Standard
    8 x; Z& B  f+ N; L/ a0 ?. T$ P
  3.   * @{0 J' Z5 A8 S7 M4 [& R8 F4 Y7 R
  4.   */
    5 S7 C9 d; x$ U+ ?: z
  5. " a! D4 R0 J' `1 S& ?1 {+ ]6 d
  6. #define I2S_Standard_Phillips           ((uint16_t)0x0000)1 k& d1 j# t$ w( t4 j; K
  7. #define I2S_Standard_MSB                ((uint16_t)0x0010): L7 u2 |8 X2 D6 K
  8. #define I2S_Standard_LSB                ((uint16_t)0x0020)
    5 z+ \- h5 d- d0 x7 Q, T- F
  9. #define I2S_Standard_PCMShort           ((uint16_t)0x0030)
    0 x7 m& y* J- S: ~
  10. #define I2S_Standard_PCMLong            ((uint16_t)0x00B0)
    8 m- K1 R) ?- c! d
  11. #define IS_I2S_STANDARD(STANDARD) (((STANDARD) == I2S_Standard_Phillips) || \
    , A+ {/ k; z* r" i+ m
  12.                                    ((STANDARD) == I2S_Standard_MSB) || \
    + O- U7 W  C$ `* T' _# O
  13.                                    ((STANDARD) == I2S_Standard_LSB) || \
    ( f$ A, }8 ]/ g( `0 A2 b
  14.                                    ((STANDARD) == I2S_Standard_PCMShort) || \
    + e# C: M5 J$ B6 ^+ G
  15.                                    ((STANDARD) == I2S_Standard_PCMLong))
复制代码
8 `+ Y4 g9 P) W3 I& Y: t# \0 _
SPI_I2S_Data_Format
. ]% p8 _. Z5 J# {/ n7 U3 o
' f5 Q  z9 L9 H! h. a7 K; [1 I1 T
  1. /** @defgroup SPI_I2S_Data_Format
      C3 W9 ]0 _2 S" K
  2.   * @{
    0 [+ k" P% A4 u- ?# S* A# i, z
  3.   */
    ( |" @5 h# q  _# V9 b+ M8 @

  4. ) D' ~( R5 z- s% |$ Y
  5. #define I2S_DataFormat_16b              ((uint16_t)0x0000)- Y& z3 f2 N  z
  6. #define I2S_DataFormat_16bextended      ((uint16_t)0x0001)
    5 S+ r* I. E* Q
  7. #define I2S_DataFormat_24b              ((uint16_t)0x0003)% x' Y# z* z3 v* n  V
  8. #define I2S_DataFormat_32b              ((uint16_t)0x0005)
    * r: G2 c; `* N' M  Z
  9. #define IS_I2S_DATA_FORMAT(FORMAT) (((FORMAT) == I2S_DataFormat_16b) || \2 Q! E* E. _8 P' k: o6 V7 a4 w
  10.                                     ((FORMAT) == I2S_DataFormat_16bextended) || \7 S% B( |3 @6 Y1 P+ Z3 _8 ?( ^% u) W
  11.                                     ((FORMAT) == I2S_DataFormat_24b) || \
    8 H* E$ C/ a# Z) w9 n/ C( `
  12.                                     ((FORMAT) == I2S_DataFormat_32b))
复制代码

, [( T/ A; _# `2 ySPI_I2S_MCLK_Output
1 E1 o% R" S3 W" }. Q- V) `
. M+ S. D0 F  L; M9 F4 C4 t
  1. /** @defgroup SPI_I2S_MCLK_Output   X$ D- `0 `9 H& A
  2.   * @{7 i. D" _; t6 q2 a2 a9 G; x
  3.   */# M& c3 d6 \; G7 o: P3 ]

  4. , G% S# L) l9 a& \* z# _
  5. #define I2S_MCLKOutput_Enable           ((uint16_t)0x0200)
    ' f2 A" w; h3 j' V+ f1 A/ g
  6. #define I2S_MCLKOutput_Disable          ((uint16_t)0x0000)
    * Y0 I0 q& H+ o7 _; ?
  7. #define IS_I2S_MCLK_OUTPUT(OUTPUT) (((OUTPUT) == I2S_MCLKOutput_Enable) || \2 \0 n) J% n! v
  8.                                     ((OUTPUT) == I2S_MCLKOutput_Disable))
复制代码
* r" F3 o8 e4 x+ Y/ l6 P2 F( k
SPI_I2S_Audio_Frequency6 |9 h  m. w. @0 r3 r  X( K
( \, |  x3 E: t& u4 K. f3 ]
  1. /** @defgroup SPI_I2S_Audio_Frequency 7 l/ a3 H/ t) V' q# C2 }* Z
  2.   * @{% V* R. Z: {5 f6 z; t/ n0 m* Y( Q  F$ \
  3.   */8 {4 X( J, s3 u8 ~/ j6 m
  4. + i# e3 A) s% A# d' \5 [1 J' }8 T) N& L
  5. #define I2S_AudioFreq_192k               ((uint32_t)192000)
    5 a, T/ A* e( l' N. ?( N
  6. #define I2S_AudioFreq_96k                ((uint32_t)96000)
    + i. }/ p+ X* A  E' [
  7. #define I2S_AudioFreq_48k                ((uint32_t)48000)
    2 o/ W- _# T. D8 m
  8. #define I2S_AudioFreq_44k                ((uint32_t)44100)9 ?' [! u0 f( ^* F; g8 e6 O( S
  9. #define I2S_AudioFreq_32k                ((uint32_t)32000)- d8 _1 V8 z- U* A
  10. #define I2S_AudioFreq_22k                ((uint32_t)22050)
    6 K3 k+ f" B5 H) ?9 t; }2 O% l% D. w' d! b
  11. #define I2S_AudioFreq_16k                ((uint32_t)16000)
    + P& y$ o2 j; w. q# m
  12. #define I2S_AudioFreq_11k                ((uint32_t)11025)+ m. Q  o' m7 L# U4 s
  13. #define I2S_AudioFreq_8k                 ((uint32_t)8000)
    " e8 x& V- D$ V' m* @! V# D
  14. #define I2S_AudioFreq_Default            ((uint32_t)2)
    + M- |3 O/ T; B0 [7 ~

  15. 9 l% O0 B0 a; y  @% z# O
  16. #define IS_I2S_AUDIO_FREQ(FREQ) ((((FREQ) >= I2S_AudioFreq_8k) && \0 z3 s6 \3 W& B3 ^0 y
  17.                                  ((FREQ) <= I2S_AudioFreq_192k)) || \& W4 z8 A* U( y8 }% x
  18.                                  ((FREQ) == I2S_AudioFreq_Default))
复制代码
. d1 \% z# x1 u' `# R
SPI_I2S_Clock_Polarity
# T* o5 Q+ x8 K
6 W3 x' l3 U. P7 z5 i: p# u; v
  1. /** @defgroup SPI_I2S_Clock_Polarity - j6 ?6 l0 c) E; E$ }6 g# i$ D: Q4 ^
  2.   * @{6 c; F& g: w$ [8 y
  3.   */; f: F# E/ L+ U. Y& N2 r$ L8 _- m
  4. + G3 B# y9 I5 Z8 r/ m+ j# v& U
  5. #define I2S_CPOL_Low                    ((uint16_t)0x0000)6 V/ b1 d, _, [& K
  6. #define I2S_CPOL_High                   ((uint16_t)0x0008)4 J/ {  M$ u% c8 `
  7. #define IS_I2S_CPOL(CPOL) (((CPOL) == I2S_CPOL_Low) || \
    : m3 ]) U; Z3 x0 J+ ^
  8.                            ((CPOL) == I2S_CPOL_High))
复制代码

3 D1 Q$ H, V, gSPI_I2S_DMA_transfer_requests
6 Q3 a. y  M1 m& s- U) i- b# ]! Q' w; [; F+ Q, j# `8 S8 D
  1. /** @defgroup SPI_I2S_DMA_transfer_requests 2 g' F+ ]- R0 x2 l4 M: ~
  2.   * @{
    4 j4 x  g  ^" J. p7 F4 n1 ?
  3.   */
    2 o% h, v0 N& I: n# B- X
  4. ( B' y) X8 [* a
  5. #define SPI_I2S_DMAReq_Tx               ((uint16_t)0x0002)3 n, V+ J$ Q- ~( \3 A, [+ y
  6. #define SPI_I2S_DMAReq_Rx               ((uint16_t)0x0001)
    $ _: i- b; _7 V$ Q. s4 e
  7. #define IS_SPI_I2S_DMAREQ(DMAREQ) ((((DMAREQ) & (uint16_t)0xFFFC) == 0x00) && ((DMAREQ) != 0x00))
复制代码
5 _0 }7 }: [! b0 U, q* W, h5 C
SPI_NSS_internal_software_management  K* i- |% g4 j( [
$ P+ N( n% b8 \8 y; s' r# Q
  1. /** @defgroup SPI_NSS_internal_software_management & Z" F  e8 r( q9 H* m
  2.   * @{0 `% `, m9 \0 _% w6 b  E- a
  3.   */7 H; D2 q. c5 P9 i' p6 d3 x% E) w6 q

  4. 1 B  L# U2 C5 ]! L, R' q0 G5 a
  5. #define SPI_NSSInternalSoft_Set         ((uint16_t)0x0100)
    2 u  N$ h- m0 K8 P6 n
  6. #define SPI_NSSInternalSoft_Reset       ((uint16_t)0xFEFF)1 I" N* b$ H5 w" j: t
  7. #define IS_SPI_NSS_INTERNAL(INTERNAL) (((INTERNAL) == SPI_NSSInternalSoft_Set) || \
    $ u. [, x; I7 f) {4 j: c
  8.                                        ((INTERNAL) == SPI_NSSInternalSoft_Reset))
复制代码

' V4 }; f3 A4 F$ X3 F6 t* DSPI_CRC_Transmit_Receive
0 o( O* j* S" \* ~& p
! `$ T5 I" l0 E1 H/ S
  1. /** @defgroup SPI_CRC_Transmit_Receive
    9 ^# G+ ^* K! O& h
  2.   * @{
    & [# G) F1 V3 q1 g
  3.   */
    . D& s0 t$ q% ^' T8 s- z

  4. $ a" Y9 b* [4 l+ B& H, I6 n3 Y
  5. #define SPI_CRC_Tx                      ((uint8_t)0x00)0 D; V) i4 l. ?" }3 G0 W
  6. #define SPI_CRC_Rx                      ((uint8_t)0x01)
    9 X, ^1 U0 a. I
  7. #define IS_SPI_CRC(CRC) (((CRC) == SPI_CRC_Tx) || ((CRC) == SPI_CRC_Rx))
复制代码
, X3 V2 P- j6 l' E6 S3 t% x0 R
SPI_direction_transmit_receive
" S0 w3 A* e+ T/ E. J; D6 k3 n4 E3 _; Y2 L
  1. /** @defgroup SPI_direction_transmit_receive ) Q* x# j% K" ~8 ~+ a4 N
  2.   * @{
    + w  g  N2 \* c% j
  3.   */
    ! e4 J9 p" k" M. O

  4. 3 i& b! Y0 o5 [. W' X
  5. #define SPI_Direction_Rx                ((uint16_t)0xBFFF)
    6 _; b: R' X# N
  6. #define SPI_Direction_Tx                ((uint16_t)0x4000)
      g8 R5 h# ^/ E6 \* S
  7. #define IS_SPI_DIRECTION(DIRECTION) (((DIRECTION) == SPI_Direction_Rx) || \: Q  V8 J9 `5 G" ^
  8.                                      ((DIRECTION) == SPI_Direction_Tx))
复制代码

4 R* C! F1 a+ {  B& g; uSPI_I2S_interrupts_definition) y& |- v( p8 ^# v& E

5 A3 I- k" |  j$ ^& x% f5 L0 o, W
  1. /** @defgroup SPI_I2S_interrupts_definition / o, ], h2 W' h0 [
  2.   * @{
    & M4 T0 }9 ^+ G! X' {; Z
  3.   */2 C! M9 N' L) m0 E( V" T' h
  4. & m. ~1 C) @! \; z' h! z8 P, C
  5. #define SPI_I2S_IT_TXE                  ((uint8_t)0x71)
    : {$ H4 ]- Q# L4 Z8 u$ k/ V4 K
  6. #define SPI_I2S_IT_RXNE                 ((uint8_t)0x60)
    4 h* C2 J) a7 J4 _0 x6 x
  7. #define SPI_I2S_IT_ERR                  ((uint8_t)0x50)
    : M) @" G  Z) [
  8. #define I2S_IT_UDR                      ((uint8_t)0x53)) P( [7 a. D7 H9 }- w
  9. #define SPI_I2S_IT_TIFRFE               ((uint8_t)0x58)3 ?2 u' ^7 v9 W1 Z: S0 D" {

  10. * E0 n/ \# i! |* V8 l; R) f
  11. #define IS_SPI_I2S_CONFIG_IT(IT) (((IT) == SPI_I2S_IT_TXE) || \
    ; A& E2 O4 |" s' h$ }* e; f
  12.                                   ((IT) == SPI_I2S_IT_RXNE) || \
    ) D7 N7 z2 ~% \- ]
  13.                                   ((IT) == SPI_I2S_IT_ERR))% d/ v3 q/ s0 e2 K1 @
  14. 6 A7 O+ Z' P) i  R  b
  15. #define SPI_I2S_IT_OVR                  ((uint8_t)0x56)
    8 B4 v5 U/ B5 ^  S
  16. #define SPI_IT_MODF                     ((uint8_t)0x55)( E, V2 W2 Z5 e# m
  17. #define SPI_IT_CRCERR                   ((uint8_t)0x54)
    - s; U4 \$ }. }3 A, n9 ~  n
  18. , z4 j" m/ X9 D
  19. #define IS_SPI_I2S_CLEAR_IT(IT) (((IT) == SPI_IT_CRCERR))
    9 v2 M4 V  g( \4 l
  20.   j! h, K  T& D% V) Z
  21. #define IS_SPI_I2S_GET_IT(IT) (((IT) == SPI_I2S_IT_RXNE)|| ((IT) == SPI_I2S_IT_TXE) || \
    ( ?# ?3 \+ K; ~3 w
  22.                                ((IT) == SPI_IT_CRCERR)  || ((IT) == SPI_IT_MODF) || \
    % d& r( ]) P8 X# x/ l9 R, w
  23.                                ((IT) == SPI_I2S_IT_OVR) || ((IT) == I2S_IT_UDR) ||\& C8 x/ X' t* ~3 C: W
  24.                                ((IT) == SPI_I2S_IT_TIFRFE))
复制代码
# c1 S, l7 }2 _* z' g8 k# b7 C
SPI_I2S_flags_definition! f3 @8 s0 Z6 M* b+ y% E: H; `

8 h; b. J/ F5 W) ~" j1 e
  1. /** @defgroup SPI_I2S_flags_definition
    5 L- L/ L& C/ b
  2.   * @{! W5 ^* k% h8 m7 E2 z; q1 Q( f
  3.   */
    & x, c2 U$ A2 p& c& @3 b: E

  4. 3 D5 j3 x: ~) n6 K
  5. #define SPI_I2S_FLAG_RXNE               ((uint16_t)0x0001)/ U( D1 R1 i) V; Z6 G6 l
  6. #define SPI_I2S_FLAG_TXE                ((uint16_t)0x0002)
    ( E2 z. p! A6 G
  7. #define I2S_FLAG_CHSIDE                 ((uint16_t)0x0004), {, g2 w4 @2 `: N2 ^
  8. #define I2S_FLAG_UDR                    ((uint16_t)0x0008)
    0 L5 c: D2 e2 \. `
  9. #define SPI_FLAG_CRCERR                 ((uint16_t)0x0010)
    ; N9 ~' k! e/ P+ x) z& d# l
  10. #define SPI_FLAG_MODF                   ((uint16_t)0x0020)2 L4 G* |& u  e6 b* z- P8 k
  11. #define SPI_I2S_FLAG_OVR                ((uint16_t)0x0040)
    3 U: {0 k) C" `1 ~) G* _" a
  12. #define SPI_I2S_FLAG_BSY                ((uint16_t)0x0080)
    8 _1 d# `1 t4 Z4 H
  13. #define SPI_I2S_FLAG_TIFRFE             ((uint16_t)0x0100)- P0 ?# E) w3 D) Y. }$ V

  14. 9 Z" ^$ [1 |# m* B* Z) R
  15. #define IS_SPI_I2S_CLEAR_FLAG(FLAG) (((FLAG) == SPI_FLAG_CRCERR))
    , M4 A& O; Q9 N+ _1 a
  16. #define IS_SPI_I2S_GET_FLAG(FLAG) (((FLAG) == SPI_I2S_FLAG_BSY) || ((FLAG) == SPI_I2S_FLAG_OVR) || \
    $ o, L% X9 i7 Z, B: p
  17.                                    ((FLAG) == SPI_FLAG_MODF) || ((FLAG) == SPI_FLAG_CRCERR) || \
      a( ^, X* F/ A
  18.                                    ((FLAG) == I2S_FLAG_UDR) || ((FLAG) == I2S_FLAG_CHSIDE) || \
    & ]- t- t+ Q3 D" P# z
  19.                                    ((FLAG) == SPI_I2S_FLAG_TXE) || ((FLAG) == SPI_I2S_FLAG_RXNE)|| \
    . _% m  j  S$ P8 i, Z) W
  20.                                    ((FLAG) == SPI_I2S_FLAG_TIFRFE))
复制代码

' x' x4 d, Z; C4 b) |* u: s2 q1 b03. 相关函数
- V- P6 o2 X6 J) K' e2 c
  1. /* Exported macro ------------------------------------------------------------*/
    : i3 G5 _/ Y: }
  2. /* Exported functions --------------------------------------------------------*/ # r# o% U( C* q4 h. E# \2 h0 I
  3. : Y3 S5 j( `! W" }
  4. /*  Function used to set the SPI configuration to the default reset state *****/
    4 B, E* j; i/ l2 R3 y
  5. void SPI_I2S_DeInit(SPI_TypeDef* SPIx);
    , r) m& U/ J: s/ H/ ]  O
  6. " A3 D, C; l1 y7 S  i; b0 e0 [
  7. /* Initialization and Configuration functions *********************************/
    4 l4 X! v# M; J8 x% o+ f) f
  8. void SPI_Init(SPI_TypeDef* SPIx, SPI_InitTypeDef* SPI_InitStruct);
    # l4 q+ b4 p- u% x- A( P
  9. void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct);
    ( [: A* V$ h- q  O
  10. void SPI_StructInit(SPI_InitTypeDef* SPI_InitStruct);
    ( r1 }8 V& h& M
  11. void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct);
    ' ]0 Y8 w7 K8 c5 D6 H. ~0 W
  12. void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState);
    5 A2 U2 X6 D0 F7 c) [$ R
  13. void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState);  [+ S7 T" l  @4 m. c' C" i$ p
  14. void SPI_DataSizeConfig(SPI_TypeDef* SPIx, uint16_t SPI_DataSize);8 ^" g" h7 v! M8 I: L% {
  15. void SPI_BiDirectionalLineConfig(SPI_TypeDef* SPIx, uint16_t SPI_Direction);- B5 M8 I: m2 d% a( }
  16. void SPI_NSSInternalSoftwareConfig(SPI_TypeDef* SPIx, uint16_t SPI_NSSInternalSoft);1 W* c, R6 r' i! u0 b
  17. void SPI_SSOutputCmd(SPI_TypeDef* SPIx, FunctionalState NewState);
    , y: y" p+ W' R
  18. void SPI_TIModeCmd(SPI_TypeDef* SPIx, FunctionalState NewState);
    3 K$ k* R+ m: Z2 k
  19. , ^! \9 o6 c9 C, |* t
  20. void I2S_FullDuplexConfig(SPI_TypeDef* I2Sxext, I2S_InitTypeDef* I2S_InitStruct);+ O9 c  a7 j' h

  21. 6 ^% g  w8 G0 H5 ~9 P+ D' n' _
  22. /* Data transfers functions ***************************************************/
    $ A% k# m' `7 i
  23. void SPI_I2S_SendData(SPI_TypeDef* SPIx, uint16_t Data);
    4 _) `) ~' q# W$ u# ?5 k
  24. uint16_t SPI_I2S_ReceiveData(SPI_TypeDef* SPIx);
    " I& X8 L5 @' Q* u8 G
  25. # t8 c% \5 b5 @
  26. /* Hardware CRC Calculation functions *****************************************/1 a' V" n9 J/ y5 g, i+ m; L
  27. void SPI_CalculateCRC(SPI_TypeDef* SPIx, FunctionalState NewState);# m( k4 Q1 y/ V5 X8 |
  28. void SPI_TransmitCRC(SPI_TypeDef* SPIx);
    ; _3 Q' {" X4 t0 D9 S+ A4 O3 w
  29. uint16_t SPI_GetCRC(SPI_TypeDef* SPIx, uint8_t SPI_CRC);
    4 d! ~( _0 F0 a- Z3 `
  30. uint16_t SPI_GetCRCPolynomial(SPI_TypeDef* SPIx);7 F0 o* B' ]) r0 m6 j/ ^# V! q% u( ]

  31. 3 ^9 w# m  d$ n% {& e' K! v9 O" L
  32. /* DMA transfers management functions *****************************************/  ]4 e1 I9 q6 e5 Q& v1 C) i
  33. void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState);+ U+ ~* X% b1 k' M
  34. 9 Z% `2 X1 s: u- S  n
  35. /* Interrupts and flags management functions **********************************/4 x) K9 |3 X7 ?* k" a- `
  36. void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState);/ _! i5 s5 Z2 Q% n3 G+ l; U
  37. FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG);
    1 y" @0 b9 ~4 _; P) M# l3 T, }
  38. void SPI_I2S_ClearFlag(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG);3 X% j% t% s& R9 r0 R4 S
  39. ITStatus SPI_I2S_GetITStatus(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT);6 @& V$ |' k7 v6 O% g
  40. void SPI_I2S_ClearITPendingBit(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT);
复制代码
7 B8 s+ N; ^, F% k& f# f
04. 结构体封装. p  g  Q. Q# X, S) b8 q$ U* ]
  1. /** - m5 @. |/ D( s7 ?" s
  2.   * @brief Serial Peripheral Interface
    " [. F0 Y1 y/ q: ?3 w: b
  3.   */9 o, h, U0 P3 g- I2 D3 W% h. G" _; {/ T! E

  4. / t( T; n( N' A6 s% B
  5. typedef struct
    4 @' Y7 e" X/ b
  6. {; S6 y# Z# m  t4 S  a3 {7 Z; p2 m/ m
  7.   __IO uint16_t CR1;        /*!< SPI control register 1 (not used in I2S mode),      Address offset: 0x00 */
    9 s$ U- |: W. K' O5 s( Y" f' B, {1 S
  8.   uint16_t      RESERVED0;  /*!< Reserved, 0x02                                                           */
    , @) [7 K5 J1 V9 N' `( v! x
  9.   __IO uint16_t CR2;        /*!< SPI control register 2,                             Address offset: 0x04 */
    9 I) o% G, u! D
  10.   uint16_t      RESERVED1;  /*!< Reserved, 0x06                                                           */* e4 X$ D( W! g3 {* ?$ h1 {
  11.   __IO uint16_t SR;         /*!< SPI status register,                                Address offset: 0x08 */
    1 C" i, L) h, v$ h# m( M# W5 q
  12.   uint16_t      RESERVED2;  /*!< Reserved, 0x0A                                                           */5 b0 t- E: j  C* j: E
  13.   __IO uint16_t DR;         /*!< SPI data register,                                  Address offset: 0x0C */
    # r5 w+ T/ i; n4 l- I
  14.   uint16_t      RESERVED3;  /*!< Reserved, 0x0E                                                           */4 {! A+ e0 g4 W: b7 f* A
  15.   __IO uint16_t CRCPR;      /*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 */
    ' L+ D) L4 W* p. ^# g, @; Z& B6 }
  16.   uint16_t      RESERVED4;  /*!< Reserved, 0x12                                                           */
    0 I5 f( H: c% J. s. e1 _) z+ E
  17.   __IO uint16_t RXCRCR;     /*!< SPI RX CRC register (not used in I2S mode),         Address offset: 0x14 */# c+ T# W! e# _& Q0 b
  18.   uint16_t      RESERVED5;  /*!< Reserved, 0x16                                                           */; K% C: l' `3 H1 J% s! e
  19.   __IO uint16_t TXCRCR;     /*!< SPI TX CRC register (not used in I2S mode),         Address offset: 0x18 */, P% T. U( L! Z+ G3 ^- V( |$ d
  20.   uint16_t      RESERVED6;  /*!< Reserved, 0x1A                                                           */! E5 [6 g0 |) V
  21.   __IO uint16_t I2SCFGR;    /*!< SPI_I2S configuration register,                     Address offset: 0x1C */
    % T  r- x5 A0 O2 K
  22.   uint16_t      RESERVED7;  /*!< Reserved, 0x1E                                                           */) s% R' h  \9 e
  23.   __IO uint16_t I2SPR;      /*!< SPI_I2S prescaler register,                         Address offset: 0x20 */
    + H1 b! Y- q8 {/ F. o# }
  24.   uint16_t      RESERVED8;  /*!< Reserved, 0x22                                                           */
      F9 V% @5 `' Y, U" E. `
  25. } SPI_TypeDef;
复制代码

8 T: o1 `$ x, k7 G! T. H5 q
  Z, C0 b: W, n0 S5 ?
2 l) b5 l9 \7 }! K
赞 收藏 评论0 发布时间:2022-6-16 18:00

举报

0个回答

所属标签

相似技术帖

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
人形机器人运动控制、感知与智能配电
半导体创新技术与应用方向
EE架构与软件定义汽车
12V/48V 汽车智能配电(SPD)
区域控制单元(ZCU)与分区架构
关注我们
st-img 微信公众号
st-img 手机版