Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Library for MAX41460, MAX41461, MAX41462, MAX41463, MAX41464 RF Transmitter ICs.
Revision 2:80969d8f6d2b, committed 2022-01-13
- Comitter:
- Ibrahim Tilki
- Date:
- Thu Jan 13 13:27:54 2022 +0300
- Parent:
- 1:ccf0e1d28860
- Commit message:
- change crystal freq range, remove unused block from send_data
Changed in this revision
Max4146x.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ccf0e1d28860 -r 80969d8f6d2b Max4146x.cpp --- a/Max4146x.cpp Thu May 02 14:11:03 2019 +0300 +++ b/Max4146x.cpp Thu Jan 13 13:27:54 2022 +0300 @@ -275,7 +275,7 @@ template <class REG> int MAX4146X<REG>::set_crystal_frequency(float freq) { - if (freq < 250 || freq > 950) { + if (freq < 12.7 || freq > 19.3) { return -1; } this->crystal_frequency = freq; @@ -442,20 +442,6 @@ // this->set_i2c_txen1(I2C_TXEN1_DISABLE); - char * value = (char *)malloc(17 * sizeof(char)); - - if (value == NULL) { - return -99; - } - - int rtn_val = i2c_handler->write(I2C_ADDRESS, (char *) 0x00, 1, true); - rtn_val = i2c_handler->read(I2C_ADDRESS, value, length, true); - if (rtn_val != 0) { - return rtn_val; - } - - free(value); - uint8_t local_data[4+length]; local_data[0] = CFG7_ADDR;