Library to handle the X-NUCLEO-CCA02M1 MEMS Microphones Expansion Board.

Dependencies:   ST_I2S ST_FREQUENCY_DIVIDER USBDEVICE

Dependents:   HelloWorld_CCA02M1 HelloWorld_CCA02M1_mbedOS HelloWorld_CCA02M1 Karaoke_CCA01M1_CCA02M1_mbedOS

Fork of X_NUCLEO_CCA02M1 by ST Expansion SW Team

MEMS Microphones Library

Library to handle the X-NUCLEO-CCA02M1 MEMS Microphones Expansion Board. A single board allows to record a standard 2-channel stereo signal as an array of PCM samples (16 bit/sample); in principle, it could make use of six additional MEMS microphones to realize a 8-channel audio system.


Microphones configuration

Currently the configurations supported are the following:

  • Stereo@48KHz
  • Stereo@44.1KHz (CD audio quality)
  • Stereo@32KHz
  • Stereo@16KHz
  • Stereo@8KHz
  • Mono@48KHz
  • Mono@44.1KHz
  • Mono@32KHz
  • Mono@16KHz
  • Mono@8KHz

Mono configurations need a Jumper connecting PB_5 and PB_13 on the Morpho connector to properly work.


Platform compatibility

  • This board can be currently used with the Nucleo F4 Family only, please see the ST_I2S library compatibility for further information.
  • The library is compatible both with mbed OS 5.x and mbed classic 2.x (to work with mbed classic, the main application has to import the "events" library, which is not included into the "mbed" library).


I2S Peripheral Usage

By default this board makes use of the I2S peripheral available on Nucleo boards.


Acquiring through the USB

In order to acquire the recorded PCM audio channel with an audio SW on a PC, please connect the expansion board to a USB port of the PC, and the Nucleo board to a USB power supply.

Committer:
Davidroid
Date:
Wed Dec 12 15:44:02 2018 +0000
Revision:
26:53f8b511f2a1
Update LICENSE.txt

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Davidroid 26:53f8b511f2a1 1
Davidroid 26:53f8b511f2a1 2 Apache License
Davidroid 26:53f8b511f2a1 3 Version 2.0, January 2004
Davidroid 26:53f8b511f2a1 4 http://www.apache.org/licenses/
Davidroid 26:53f8b511f2a1 5
Davidroid 26:53f8b511f2a1 6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Davidroid 26:53f8b511f2a1 7
Davidroid 26:53f8b511f2a1 8 1. Definitions.
Davidroid 26:53f8b511f2a1 9
Davidroid 26:53f8b511f2a1 10 "License" shall mean the terms and conditions for use, reproduction,
Davidroid 26:53f8b511f2a1 11 and distribution as defined by Sections 1 through 9 of this document.
Davidroid 26:53f8b511f2a1 12
Davidroid 26:53f8b511f2a1 13 "Licensor" shall mean the copyright owner or entity authorized by
Davidroid 26:53f8b511f2a1 14 the copyright owner that is granting the License.
Davidroid 26:53f8b511f2a1 15
Davidroid 26:53f8b511f2a1 16 "Legal Entity" shall mean the union of the acting entity and all
Davidroid 26:53f8b511f2a1 17 other entities that control, are controlled by, or are under common
Davidroid 26:53f8b511f2a1 18 control with that entity. For the purposes of this definition,
Davidroid 26:53f8b511f2a1 19 "control" means (i) the power, direct or indirect, to cause the
Davidroid 26:53f8b511f2a1 20 direction or management of such entity, whether by contract or
Davidroid 26:53f8b511f2a1 21 otherwise, or (ii) ownership of fifty percent (50%) or more of the
Davidroid 26:53f8b511f2a1 22 outstanding shares, or (iii) beneficial ownership of such entity.
Davidroid 26:53f8b511f2a1 23
Davidroid 26:53f8b511f2a1 24 "You" (or "Your") shall mean an individual or Legal Entity
Davidroid 26:53f8b511f2a1 25 exercising permissions granted by this License.
Davidroid 26:53f8b511f2a1 26
Davidroid 26:53f8b511f2a1 27 "Source" form shall mean the preferred form for making modifications,
Davidroid 26:53f8b511f2a1 28 including but not limited to software source code, documentation
Davidroid 26:53f8b511f2a1 29 source, and configuration files.
Davidroid 26:53f8b511f2a1 30
Davidroid 26:53f8b511f2a1 31 "Object" form shall mean any form resulting from mechanical
Davidroid 26:53f8b511f2a1 32 transformation or translation of a Source form, including but
Davidroid 26:53f8b511f2a1 33 not limited to compiled object code, generated documentation,
Davidroid 26:53f8b511f2a1 34 and conversions to other media types.
Davidroid 26:53f8b511f2a1 35
Davidroid 26:53f8b511f2a1 36 "Work" shall mean the work of authorship, whether in Source or
Davidroid 26:53f8b511f2a1 37 Object form, made available under the License, as indicated by a
Davidroid 26:53f8b511f2a1 38 copyright notice that is included in or attached to the work
Davidroid 26:53f8b511f2a1 39 (an example is provided in the Appendix below).
Davidroid 26:53f8b511f2a1 40
Davidroid 26:53f8b511f2a1 41 "Derivative Works" shall mean any work, whether in Source or Object
Davidroid 26:53f8b511f2a1 42 form, that is based on (or derived from) the Work and for which the
Davidroid 26:53f8b511f2a1 43 editorial revisions, annotations, elaborations, or other modifications
Davidroid 26:53f8b511f2a1 44 represent, as a whole, an original work of authorship. For the purposes
Davidroid 26:53f8b511f2a1 45 of this License, Derivative Works shall not include works that remain
Davidroid 26:53f8b511f2a1 46 separable from, or merely link (or bind by name) to the interfaces of,
Davidroid 26:53f8b511f2a1 47 the Work and Derivative Works thereof.
Davidroid 26:53f8b511f2a1 48
Davidroid 26:53f8b511f2a1 49 "Contribution" shall mean any work of authorship, including
Davidroid 26:53f8b511f2a1 50 the original version of the Work and any modifications or additions
Davidroid 26:53f8b511f2a1 51 to that Work or Derivative Works thereof, that is intentionally
Davidroid 26:53f8b511f2a1 52 submitted to Licensor for inclusion in the Work by the copyright owner
Davidroid 26:53f8b511f2a1 53 or by an individual or Legal Entity authorized to submit on behalf of
Davidroid 26:53f8b511f2a1 54 the copyright owner. For the purposes of this definition, "submitted"
Davidroid 26:53f8b511f2a1 55 means any form of electronic, verbal, or written communication sent
Davidroid 26:53f8b511f2a1 56 to the Licensor or its representatives, including but not limited to
Davidroid 26:53f8b511f2a1 57 communication on electronic mailing lists, source code control systems,
Davidroid 26:53f8b511f2a1 58 and issue tracking systems that are managed by, or on behalf of, the
Davidroid 26:53f8b511f2a1 59 Licensor for the purpose of discussing and improving the Work, but
Davidroid 26:53f8b511f2a1 60 excluding communication that is conspicuously marked or otherwise
Davidroid 26:53f8b511f2a1 61 designated in writing by the copyright owner as "Not a Contribution."
Davidroid 26:53f8b511f2a1 62
Davidroid 26:53f8b511f2a1 63 "Contributor" shall mean Licensor and any individual or Legal Entity
Davidroid 26:53f8b511f2a1 64 on behalf of whom a Contribution has been received by Licensor and
Davidroid 26:53f8b511f2a1 65 subsequently incorporated within the Work.
Davidroid 26:53f8b511f2a1 66
Davidroid 26:53f8b511f2a1 67 2. Grant of Copyright License. Subject to the terms and conditions of
Davidroid 26:53f8b511f2a1 68 this License, each Contributor hereby grants to You a perpetual,
Davidroid 26:53f8b511f2a1 69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
Davidroid 26:53f8b511f2a1 70 copyright license to reproduce, prepare Derivative Works of,
Davidroid 26:53f8b511f2a1 71 publicly display, publicly perform, sublicense, and distribute the
Davidroid 26:53f8b511f2a1 72 Work and such Derivative Works in Source or Object form.
Davidroid 26:53f8b511f2a1 73
Davidroid 26:53f8b511f2a1 74 3. Grant of Patent License. Subject to the terms and conditions of
Davidroid 26:53f8b511f2a1 75 this License, each Contributor hereby grants to You a perpetual,
Davidroid 26:53f8b511f2a1 76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
Davidroid 26:53f8b511f2a1 77 (except as stated in this section) patent license to make, have made,
Davidroid 26:53f8b511f2a1 78 use, offer to sell, sell, import, and otherwise transfer the Work,
Davidroid 26:53f8b511f2a1 79 where such license applies only to those patent claims licensable
Davidroid 26:53f8b511f2a1 80 by such Contributor that are necessarily infringed by their
Davidroid 26:53f8b511f2a1 81 Contribution(s) alone or by combination of their Contribution(s)
Davidroid 26:53f8b511f2a1 82 with the Work to which such Contribution(s) was submitted. If You
Davidroid 26:53f8b511f2a1 83 institute patent litigation against any entity (including a
Davidroid 26:53f8b511f2a1 84 cross-claim or counterclaim in a lawsuit) alleging that the Work
Davidroid 26:53f8b511f2a1 85 or a Contribution incorporated within the Work constitutes direct
Davidroid 26:53f8b511f2a1 86 or contributory patent infringement, then any patent licenses
Davidroid 26:53f8b511f2a1 87 granted to You under this License for that Work shall terminate
Davidroid 26:53f8b511f2a1 88 as of the date such litigation is filed.
Davidroid 26:53f8b511f2a1 89
Davidroid 26:53f8b511f2a1 90 4. Redistribution. You may reproduce and distribute copies of the
Davidroid 26:53f8b511f2a1 91 Work or Derivative Works thereof in any medium, with or without
Davidroid 26:53f8b511f2a1 92 modifications, and in Source or Object form, provided that You
Davidroid 26:53f8b511f2a1 93 meet the following conditions:
Davidroid 26:53f8b511f2a1 94
Davidroid 26:53f8b511f2a1 95 (a) You must give any other recipients of the Work or
Davidroid 26:53f8b511f2a1 96 Derivative Works a copy of this License; and
Davidroid 26:53f8b511f2a1 97
Davidroid 26:53f8b511f2a1 98 (b) You must cause any modified files to carry prominent notices
Davidroid 26:53f8b511f2a1 99 stating that You changed the files; and
Davidroid 26:53f8b511f2a1 100
Davidroid 26:53f8b511f2a1 101 (c) You must retain, in the Source form of any Derivative Works
Davidroid 26:53f8b511f2a1 102 that You distribute, all copyright, patent, trademark, and
Davidroid 26:53f8b511f2a1 103 attribution notices from the Source form of the Work,
Davidroid 26:53f8b511f2a1 104 excluding those notices that do not pertain to any part of
Davidroid 26:53f8b511f2a1 105 the Derivative Works; and
Davidroid 26:53f8b511f2a1 106
Davidroid 26:53f8b511f2a1 107 (d) If the Work includes a "NOTICE" text file as part of its
Davidroid 26:53f8b511f2a1 108 distribution, then any Derivative Works that You distribute must
Davidroid 26:53f8b511f2a1 109 include a readable copy of the attribution notices contained
Davidroid 26:53f8b511f2a1 110 within such NOTICE file, excluding those notices that do not
Davidroid 26:53f8b511f2a1 111 pertain to any part of the Derivative Works, in at least one
Davidroid 26:53f8b511f2a1 112 of the following places: within a NOTICE text file distributed
Davidroid 26:53f8b511f2a1 113 as part of the Derivative Works; within the Source form or
Davidroid 26:53f8b511f2a1 114 documentation, if provided along with the Derivative Works; or,
Davidroid 26:53f8b511f2a1 115 within a display generated by the Derivative Works, if and
Davidroid 26:53f8b511f2a1 116 wherever such third-party notices normally appear. The contents
Davidroid 26:53f8b511f2a1 117 of the NOTICE file are for informational purposes only and
Davidroid 26:53f8b511f2a1 118 do not modify the License. You may add Your own attribution
Davidroid 26:53f8b511f2a1 119 notices within Derivative Works that You distribute, alongside
Davidroid 26:53f8b511f2a1 120 or as an addendum to the NOTICE text from the Work, provided
Davidroid 26:53f8b511f2a1 121 that such additional attribution notices cannot be construed
Davidroid 26:53f8b511f2a1 122 as modifying the License.
Davidroid 26:53f8b511f2a1 123
Davidroid 26:53f8b511f2a1 124 You may add Your own copyright statement to Your modifications and
Davidroid 26:53f8b511f2a1 125 may provide additional or different license terms and conditions
Davidroid 26:53f8b511f2a1 126 for use, reproduction, or distribution of Your modifications, or
Davidroid 26:53f8b511f2a1 127 for any such Derivative Works as a whole, provided Your use,
Davidroid 26:53f8b511f2a1 128 reproduction, and distribution of the Work otherwise complies with
Davidroid 26:53f8b511f2a1 129 the conditions stated in this License.
Davidroid 26:53f8b511f2a1 130
Davidroid 26:53f8b511f2a1 131 5. Submission of Contributions. Unless You explicitly state otherwise,
Davidroid 26:53f8b511f2a1 132 any Contribution intentionally submitted for inclusion in the Work
Davidroid 26:53f8b511f2a1 133 by You to the Licensor shall be under the terms and conditions of
Davidroid 26:53f8b511f2a1 134 this License, without any additional terms or conditions.
Davidroid 26:53f8b511f2a1 135 Notwithstanding the above, nothing herein shall supersede or modify
Davidroid 26:53f8b511f2a1 136 the terms of any separate license agreement you may have executed
Davidroid 26:53f8b511f2a1 137 with Licensor regarding such Contributions.
Davidroid 26:53f8b511f2a1 138
Davidroid 26:53f8b511f2a1 139 6. Trademarks. This License does not grant permission to use the trade
Davidroid 26:53f8b511f2a1 140 names, trademarks, service marks, or product names of the Licensor,
Davidroid 26:53f8b511f2a1 141 except as required for reasonable and customary use in describing the
Davidroid 26:53f8b511f2a1 142 origin of the Work and reproducing the content of the NOTICE file.
Davidroid 26:53f8b511f2a1 143
Davidroid 26:53f8b511f2a1 144 7. Disclaimer of Warranty. Unless required by applicable law or
Davidroid 26:53f8b511f2a1 145 agreed to in writing, Licensor provides the Work (and each
Davidroid 26:53f8b511f2a1 146 Contributor provides its Contributions) on an "AS IS" BASIS,
Davidroid 26:53f8b511f2a1 147 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
Davidroid 26:53f8b511f2a1 148 implied, including, without limitation, any warranties or conditions
Davidroid 26:53f8b511f2a1 149 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
Davidroid 26:53f8b511f2a1 150 PARTICULAR PURPOSE. You are solely responsible for determining the
Davidroid 26:53f8b511f2a1 151 appropriateness of using or redistributing the Work and assume any
Davidroid 26:53f8b511f2a1 152 risks associated with Your exercise of permissions under this License.
Davidroid 26:53f8b511f2a1 153
Davidroid 26:53f8b511f2a1 154 8. Limitation of Liability. In no event and under no legal theory,
Davidroid 26:53f8b511f2a1 155 whether in tort (including negligence), contract, or otherwise,
Davidroid 26:53f8b511f2a1 156 unless required by applicable law (such as deliberate and grossly
Davidroid 26:53f8b511f2a1 157 negligent acts) or agreed to in writing, shall any Contributor be
Davidroid 26:53f8b511f2a1 158 liable to You for damages, including any direct, indirect, special,
Davidroid 26:53f8b511f2a1 159 incidental, or consequential damages of any character arising as a
Davidroid 26:53f8b511f2a1 160 result of this License or out of the use or inability to use the
Davidroid 26:53f8b511f2a1 161 Work (including but not limited to damages for loss of goodwill,
Davidroid 26:53f8b511f2a1 162 work stoppage, computer failure or malfunction, or any and all
Davidroid 26:53f8b511f2a1 163 other commercial damages or losses), even if such Contributor
Davidroid 26:53f8b511f2a1 164 has been advised of the possibility of such damages.
Davidroid 26:53f8b511f2a1 165
Davidroid 26:53f8b511f2a1 166 9. Accepting Warranty or Additional Liability. While redistributing
Davidroid 26:53f8b511f2a1 167 the Work or Derivative Works thereof, You may choose to offer,
Davidroid 26:53f8b511f2a1 168 and charge a fee for, acceptance of support, warranty, indemnity,
Davidroid 26:53f8b511f2a1 169 or other liability obligations and/or rights consistent with this
Davidroid 26:53f8b511f2a1 170 License. However, in accepting such obligations, You may act only
Davidroid 26:53f8b511f2a1 171 on Your own behalf and on Your sole responsibility, not on behalf
Davidroid 26:53f8b511f2a1 172 of any other Contributor, and only if You agree to indemnify,
Davidroid 26:53f8b511f2a1 173 defend, and hold each Contributor harmless for any liability
Davidroid 26:53f8b511f2a1 174 incurred by, or claims asserted against, such Contributor by reason
Davidroid 26:53f8b511f2a1 175 of your accepting any such warranty or additional liability.
Davidroid 26:53f8b511f2a1 176
Davidroid 26:53f8b511f2a1 177 END OF TERMS AND CONDITIONS
Davidroid 26:53f8b511f2a1 178
Davidroid 26:53f8b511f2a1 179 APPENDIX: How to apply the Apache License to your work.
Davidroid 26:53f8b511f2a1 180
Davidroid 26:53f8b511f2a1 181 To apply the Apache License to your work, attach the following
Davidroid 26:53f8b511f2a1 182 boilerplate notice, with the fields enclosed by brackets "[]"
Davidroid 26:53f8b511f2a1 183 replaced with your own identifying information. (Don't include
Davidroid 26:53f8b511f2a1 184 the brackets!) The text should be enclosed in the appropriate
Davidroid 26:53f8b511f2a1 185 comment syntax for the file format. We also recommend that a
Davidroid 26:53f8b511f2a1 186 file or class name and description of purpose be included on the
Davidroid 26:53f8b511f2a1 187 same "printed page" as the copyright notice for easier
Davidroid 26:53f8b511f2a1 188 identification within third-party archives.
Davidroid 26:53f8b511f2a1 189
Davidroid 26:53f8b511f2a1 190 Copyright [yyyy] [name of copyright owner]
Davidroid 26:53f8b511f2a1 191
Davidroid 26:53f8b511f2a1 192 Licensed under the Apache License, Version 2.0 (the "License");
Davidroid 26:53f8b511f2a1 193 you may not use this file except in compliance with the License.
Davidroid 26:53f8b511f2a1 194 You may obtain a copy of the License at
Davidroid 26:53f8b511f2a1 195
Davidroid 26:53f8b511f2a1 196 http://www.apache.org/licenses/LICENSE-2.0
Davidroid 26:53f8b511f2a1 197
Davidroid 26:53f8b511f2a1 198 Unless required by applicable law or agreed to in writing, software
Davidroid 26:53f8b511f2a1 199 distributed under the License is distributed on an "AS IS" BASIS,
Davidroid 26:53f8b511f2a1 200 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Davidroid 26:53f8b511f2a1 201 See the License for the specific language governing permissions and
Davidroid 26:53f8b511f2a1 202 limitations under the License.